Class AgentData.Builder (3.96.0)

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

Implements

AgentDataOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTurns(Iterable<? extends ConversationTurn> values)

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>
Returns
Type Description
AgentData.Builder

addTurns(ConversationTurn value)

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];

Parameter
Name Description
value ConversationTurn
Returns
Type Description
AgentData.Builder

addTurns(ConversationTurn.Builder builderForValue)

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];

Parameter
Name Description
builderForValue ConversationTurn.Builder
Returns
Type Description
AgentData.Builder

addTurns(int index, ConversationTurn value)

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];

Parameters
Name Description
index int
value ConversationTurn
Returns
Type Description
AgentData.Builder

addTurns(int index, ConversationTurn.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue ConversationTurn.Builder
Returns
Type Description
AgentData.Builder

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];

Returns
Type Description
ConversationTurn.Builder

addTurnsBuilder(int index)

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
Returns
Type Description
ConversationTurn.Builder

build()

public AgentData build()
Returns
Type Description
AgentData

buildPartial()

public AgentData buildPartial()
Returns
Type Description
AgentData

clear()

public AgentData.Builder clear()
Returns
Type Description
AgentData.Builder
Overrides

clearAgents()

public AgentData.Builder clearAgents()
Returns
Type Description
AgentData.Builder

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];

Returns
Type Description
AgentData.Builder

containsAgents(String key)

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
Returns
Type Description
boolean

getAgents() (deprecated)

public Map<String,AgentConfig> getAgents()

Use #getAgentsMap() instead.

Returns
Type Description
Map<String,AgentConfig>

getAgentsCount()

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

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];

Returns
Type Description
Map<String,AgentConfig>

getAgentsOrDefault(String key, AgentConfig defaultValue)

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];

Parameters
Name Description
key String
defaultValue AgentConfig
Returns
Type Description
AgentConfig

getAgentsOrThrow(String key)

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
Returns
Type Description
AgentConfig

getDefaultInstanceForType()

public AgentData getDefaultInstanceForType()
Returns
Type Description
AgentData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableAgents() (deprecated)

public Map<String,AgentConfig> getMutableAgents()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,AgentConfig>

getTurns(int index)

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
Returns
Type Description
ConversationTurn

getTurnsBuilder(int index)

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
Returns
Type Description
ConversationTurn.Builder

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];

Returns
Type Description
List<Builder>

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];

Returns
Type Description
int

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];

Returns
Type Description
List<ConversationTurn>

getTurnsOrBuilder(int index)

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
Returns
Type Description
ConversationTurnOrBuilder

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];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

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)

internalGetMutableMapFieldReflection(int number)

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)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AgentData other)

public AgentData.Builder mergeFrom(AgentData other)
Parameter
Name Description
other AgentData
Returns
Type Description
AgentData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AgentData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentData.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AgentData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AgentData.Builder
Overrides

putAgents(String key, AgentConfig value)

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];

Parameters
Name Description
key String
value AgentConfig
Returns
Type Description
AgentData.Builder

putAgentsBuilderIfAbsent(String key)

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
Returns
Type Description
AgentConfig.Builder

putAllAgents(Map<String,AgentConfig> values)

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];

Parameter
Name Description
values Map<String,AgentConfig>
Returns
Type Description
AgentData.Builder

removeAgents(String key)

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
Returns
Type Description
AgentData.Builder

removeTurns(int index)

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
Returns
Type Description
AgentData.Builder

setTurns(int index, ConversationTurn value)

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];

Parameters
Name Description
index int
value ConversationTurn
Returns
Type Description
AgentData.Builder

setTurns(int index, ConversationTurn.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue ConversationTurn.Builder
Returns
Type Description
AgentData.Builder