public static final class AgentData.Builder extends GeneratedMessage.Builder<AgentData.Builder> implements AgentDataOrBuilder
Represents data specific to multi-turn agent evaluations.
Protobuf type google.cloud.aiplatform.v1beta1.AgentData
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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];
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1beta1.ConversationTurn>
|
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];
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];
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];
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];
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];
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];
| Parameter |
| Name |
Description |
index |
int
|
public AgentData buildPartial()
public AgentData.Builder clear()
Overrides
public AgentData.Builder clearAgents()
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];
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];
| Parameter |
| Name |
Description |
key |
String
|
public Map<String,AgentConfig> getAgents()
public int getAgentsCount()
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];
| Returns |
| Type |
Description |
int |
|
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];
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];
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];
| Parameter |
| Name |
Description |
key |
String
|
public AgentData getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Map<String,AgentConfig> getMutableAgents()
Use alternate mutation accessors instead.
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];
| Parameter |
| Name |
Description |
index |
int
|
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];
| Parameter |
| Name |
Description |
index |
int
|
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];
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];
| Returns |
| Type |
Description |
int |
|
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];
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];
| Parameter |
| Name |
Description |
index |
int
|
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];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder> |
|
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
public final boolean isInitialized()
Overrides
public AgentData.Builder mergeFrom(AgentData other)
public AgentData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public AgentData.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
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];
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];
| Parameter |
| Name |
Description |
key |
String
|
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];
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];
| Parameter |
| Name |
Description |
key |
String
|
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];
| Parameter |
| Name |
Description |
index |
int
|
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];
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];