Class EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder (3.100.0)

public static final class EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder extends GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder> implements EvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder

A single event in the execution trace.

Protobuf type google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent

Static Methods

getDescriptor()

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

Methods

addActiveTools(Tool value)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder addActiveTools(Tool value)

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Tool
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

addActiveTools(Tool.Builder builderForValue)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder addActiveTools(Tool.Builder builderForValue)

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Tool.Builder
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

addActiveTools(int index, Tool value)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder addActiveTools(int index, Tool value)

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Tool
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

addActiveTools(int index, Tool.Builder builderForValue)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder addActiveTools(int index, Tool.Builder builderForValue)

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Tool.Builder
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

addActiveToolsBuilder()

public Tool.Builder addActiveToolsBuilder()

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Tool.Builder

addActiveToolsBuilder(int index)

public Tool.Builder addActiveToolsBuilder(int index)

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Tool.Builder

addAllActiveTools(Iterable<? extends Tool> values)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder addAllActiveTools(Iterable<? extends Tool> values)

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.Tool>
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

build()

public EvaluationInstance.DeprecatedAgentData.AgentEvent build()
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent

buildPartial()

public EvaluationInstance.DeprecatedAgentData.AgentEvent buildPartial()
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent

clear()

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder clear()
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder
Overrides

clearActiveTools()

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder clearActiveTools()

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

clearAuthor()

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder clearAuthor()

Required. The ID of the agent or entity that generated this event.

optional string author = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

This builder for chaining.

clearContent()

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder clearContent()

Required. The content of the event (e.g., text response, tool call, tool response).

.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

clearEventTime()

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder clearEventTime()

Optional. The timestamp when the event occurred.

.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

clearStateDelta()

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder clearStateDelta()

Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.

.google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

getActiveTools(int index)

public Tool getActiveTools(int index)

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Tool

getActiveToolsBuilder(int index)

public Tool.Builder getActiveToolsBuilder(int index)

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Tool.Builder

getActiveToolsBuilderList()

public List<Tool.Builder> getActiveToolsBuilderList()

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getActiveToolsCount()

public int getActiveToolsCount()

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getActiveToolsList()

public List<Tool> getActiveToolsList()

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Tool>

getActiveToolsOrBuilder(int index)

public ToolOrBuilder getActiveToolsOrBuilder(int index)

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolOrBuilder

getActiveToolsOrBuilderList()

public List<? extends ToolOrBuilder> getActiveToolsOrBuilderList()

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

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

getAuthor()

public String getAuthor()

Required. The ID of the agent or entity that generated this event.

optional string author = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The author.

getAuthorBytes()

public ByteString getAuthorBytes()

Required. The ID of the agent or entity that generated this event.

optional string author = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for author.

getContent()

public Content getContent()

Required. The content of the event (e.g., text response, tool call, tool response).

.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Content

The content.

getContentBuilder()

public Content.Builder getContentBuilder()

Required. The content of the event (e.g., text response, tool call, tool response).

.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Content.Builder

getContentOrBuilder()

public ContentOrBuilder getContentOrBuilder()

Required. The content of the event (e.g., text response, tool call, tool response).

.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContentOrBuilder

getDefaultInstanceForType()

public EvaluationInstance.DeprecatedAgentData.AgentEvent getDefaultInstanceForType()
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent

getDescriptorForType()

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

getEventTime()

public Timestamp getEventTime()

Optional. The timestamp when the event occurred.

.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The eventTime.

getEventTimeBuilder()

public Timestamp.Builder getEventTimeBuilder()

Optional. The timestamp when the event occurred.

.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getEventTimeOrBuilder()

public TimestampOrBuilder getEventTimeOrBuilder()

Optional. The timestamp when the event occurred.

.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getStateDelta()

public Struct getStateDelta()

Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.

.google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The stateDelta.

getStateDeltaBuilder()

public Struct.Builder getStateDeltaBuilder()

Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.

.google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getStateDeltaOrBuilder()

public StructOrBuilder getStateDeltaOrBuilder()

Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.

.google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

hasAuthor()

public boolean hasAuthor()

Required. The ID of the agent or entity that generated this event.

optional string author = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the author field is set.

hasContent()

public boolean hasContent()

Required. The content of the event (e.g., text response, tool call, tool response).

.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the content field is set.

hasEventTime()

public boolean hasEventTime()

Optional. The timestamp when the event occurred.

.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the eventTime field is set.

hasStateDelta()

public boolean hasStateDelta()

Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.

.google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the stateDelta field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContent(Content value)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder mergeContent(Content value)

Required. The content of the event (e.g., text response, tool call, tool response).

.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Content
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

mergeEventTime(Timestamp value)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder mergeEventTime(Timestamp value)

Optional. The timestamp when the event occurred.

.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

mergeFrom(EvaluationInstance.DeprecatedAgentData.AgentEvent other)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder mergeFrom(EvaluationInstance.DeprecatedAgentData.AgentEvent other)
Parameter
Name Description
other EvaluationInstance.DeprecatedAgentData.AgentEvent
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder
Overrides

mergeStateDelta(Struct value)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder mergeStateDelta(Struct value)

Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.

.google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

removeActiveTools(int index)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder removeActiveTools(int index)

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

setActiveTools(int index, Tool value)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setActiveTools(int index, Tool value)

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Tool
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

setActiveTools(int index, Tool.Builder builderForValue)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setActiveTools(int index, Tool.Builder builderForValue)

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Tool.Builder
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

setAuthor(String value)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setAuthor(String value)

Required. The ID of the agent or entity that generated this event.

optional string author = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The author to set.

Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

This builder for chaining.

setAuthorBytes(ByteString value)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setAuthorBytes(ByteString value)

Required. The ID of the agent or entity that generated this event.

optional string author = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for author to set.

Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

This builder for chaining.

setContent(Content value)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setContent(Content value)

Required. The content of the event (e.g., text response, tool call, tool response).

.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Content
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

setContent(Content.Builder builderForValue)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setContent(Content.Builder builderForValue)

Required. The content of the event (e.g., text response, tool call, tool response).

.google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Content.Builder
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

setEventTime(Timestamp value)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setEventTime(Timestamp value)

Optional. The timestamp when the event occurred.

.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

setEventTime(Timestamp.Builder builderForValue)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setEventTime(Timestamp.Builder builderForValue)

Optional. The timestamp when the event occurred.

.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

setStateDelta(Struct value)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setStateDelta(Struct value)

Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.

.google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

setStateDelta(Struct.Builder builderForValue)

public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setStateDelta(Struct.Builder builderForValue)

Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.

.google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder