Class AgentData.Builder

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

public static final class AgentData.Builder extends com.google.protobuf.GeneratedMessage.Builder<AgentData.Builder> implements AgentDataOrBuilder
 Represents data specific to multi-turn agent evaluations.
 
Protobuf type google.cloud.aiplatform.v1beta1.AgentData
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AgentData.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AgentData.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AgentData.Builder>
    • clear

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

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

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

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

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

      public AgentData.Builder mergeFrom(AgentData other)
    • isInitialized

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

      public AgentData.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<AgentData.Builder>
      Throws:
      IOException
    • getAgentsCount

      public int getAgentsCount()
      Description copied from interface: AgentDataOrBuilder
       Optional. A map containing the static configurations for each agent in the
       system. Key: agent_id (matches the `author` field in events). Value: The
       static configuration of the agent.
       
      map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentsCount in interface AgentDataOrBuilder
    • containsAgents

      public boolean containsAgents(String key)
       Optional. A map containing the static configurations for each agent in the
       system. Key: agent_id (matches the `author` field in events). Value: The
       static configuration of the agent.
       
      map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAgents in interface AgentDataOrBuilder
    • getAgents

      @Deprecated public Map<String,AgentConfig> getAgents()
      Deprecated.
      Use getAgentsMap() instead.
      Specified by:
      getAgents in interface AgentDataOrBuilder
    • getAgentsMap

      public Map<String,AgentConfig> getAgentsMap()
       Optional. A map containing the static configurations for each agent in the
       system. Key: agent_id (matches the `author` field in events). Value: The
       static configuration of the agent.
       
      map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentsMap in interface AgentDataOrBuilder
    • getAgentsOrDefault

      public AgentConfig getAgentsOrDefault(String key, AgentConfig defaultValue)
       Optional. A map containing the static configurations for each agent in the
       system. Key: agent_id (matches the `author` field in events). Value: The
       static configuration of the agent.
       
      map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentsOrDefault in interface AgentDataOrBuilder
    • getAgentsOrThrow

      public AgentConfig getAgentsOrThrow(String key)
       Optional. A map containing the static configurations for each agent in the
       system. Key: agent_id (matches the `author` field in events). Value: The
       static configuration of the agent.
       
      map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentsOrThrow in interface AgentDataOrBuilder
    • clearAgents

      public AgentData.Builder clearAgents()
    • removeAgents

      public AgentData.Builder removeAgents(String key)
       Optional. A map containing the static configurations for each agent in the
       system. Key: agent_id (matches the `author` field in events). Value: The
       static configuration of the agent.
       
      map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAgents

      @Deprecated public Map<String,AgentConfig> getMutableAgents()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAgents

      public AgentData.Builder putAgents(String key, AgentConfig value)
       Optional. A map containing the static configurations for each agent in the
       system. Key: agent_id (matches the `author` field in events). Value: The
       static configuration of the agent.
       
      map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAgents

      public AgentData.Builder putAllAgents(Map<String,AgentConfig> values)
       Optional. A map containing the static configurations for each agent in the
       system. Key: agent_id (matches the `author` field in events). Value: The
       static configuration of the agent.
       
      map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • putAgentsBuilderIfAbsent

      public AgentConfig.Builder putAgentsBuilderIfAbsent(String key)
       Optional. A map containing the static configurations for each agent in the
       system. Key: agent_id (matches the `author` field in events). Value: The
       static configuration of the agent.
       
      map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getTurnsList

      public List<ConversationTurn> getTurnsList()
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTurnsList in interface AgentDataOrBuilder
    • getTurnsCount

      public int getTurnsCount()
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTurnsCount in interface AgentDataOrBuilder
    • getTurns

      public ConversationTurn getTurns(int index)
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTurns in interface AgentDataOrBuilder
    • setTurns

      public AgentData.Builder setTurns(int index, ConversationTurn value)
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setTurns

      public AgentData.Builder setTurns(int index, ConversationTurn.Builder builderForValue)
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addTurns

      public AgentData.Builder addTurns(ConversationTurn value)
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addTurns

      public AgentData.Builder addTurns(int index, ConversationTurn value)
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addTurns

      public AgentData.Builder addTurns(ConversationTurn.Builder builderForValue)
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addTurns

      public AgentData.Builder addTurns(int index, ConversationTurn.Builder builderForValue)
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllTurns

      public AgentData.Builder addAllTurns(Iterable<? extends ConversationTurn> values)
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearTurns

      public AgentData.Builder clearTurns()
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeTurns

      public AgentData.Builder removeTurns(int index)
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getTurnsBuilder

      public ConversationTurn.Builder getTurnsBuilder(int index)
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getTurnsOrBuilder

      public ConversationTurnOrBuilder getTurnsOrBuilder(int index)
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTurnsOrBuilder in interface AgentDataOrBuilder
    • getTurnsOrBuilderList

      public List<? extends ConversationTurnOrBuilder> getTurnsOrBuilderList()
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTurnsOrBuilderList in interface AgentDataOrBuilder
    • addTurnsBuilder

      public ConversationTurn.Builder addTurnsBuilder()
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addTurnsBuilder

      public ConversationTurn.Builder addTurnsBuilder(int index)
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getTurnsBuilderList

      public List<ConversationTurn.Builder> getTurnsBuilderList()
       Optional. A chronological list of conversation turns.
       Each turn represents a logical execution cycle (e.g., User Input -> Agent
       Response).
       
      repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL];