Class EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder>
com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder
- All Implemented Interfaces:
EvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EvaluationInstance.DeprecatedAgentData.AgentEvent
public static final class EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionaddActiveTools(int index, Tool value) Optional.addActiveTools(int index, Tool.Builder builderForValue) Optional.addActiveTools(Tool value) Optional.addActiveTools(Tool.Builder builderForValue) Optional.Optional.addActiveToolsBuilder(int index) Optional.addAllActiveTools(Iterable<? extends Tool> values) Optional.build()clear()Optional.Required.Required.Optional.Optional.getActiveTools(int index) Optional.getActiveToolsBuilder(int index) Optional.Optional.intOptional.Optional.getActiveToolsOrBuilder(int index) Optional.List<? extends ToolOrBuilder>Optional.Required.com.google.protobuf.ByteStringRequired.Required.Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.com.google.protobuf.StructOptional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.booleanRequired.booleanRequired.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeContent(Content value) Required.mergeEventTime(com.google.protobuf.Timestamp value) Optional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStateDelta(com.google.protobuf.Struct value) Optional.removeActiveTools(int index) Optional.setActiveTools(int index, Tool value) Optional.setActiveTools(int index, Tool.Builder builderForValue) Optional.Required.setAuthorBytes(com.google.protobuf.ByteString value) Required.setContent(Content value) Required.setContent(Content.Builder builderForValue) Required.setEventTime(com.google.protobuf.Timestamp value) Optional.setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setStateDelta(com.google.protobuf.Struct value) Optional.setStateDelta(com.google.protobuf.Struct.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder>
-
mergeFrom
public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder>- Throws:
IOException
-
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];- Specified by:
hasAuthorin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder- Returns:
- Whether the author field is set.
-
getAuthor
Required. The ID of the agent or entity that generated this event.
optional string author = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAuthorin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder- Returns:
- The author.
-
getAuthorBytes
public com.google.protobuf.ByteString getAuthorBytes()Required. The ID of the agent or entity that generated this event.
optional string author = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAuthorBytesin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder- Returns:
- The bytes for author.
-
setAuthor
Required. The ID of the agent or entity that generated this event.
optional string author = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The author to set.- Returns:
- This builder for chaining.
-
clearAuthor
Required. The ID of the agent or entity that generated this event.
optional string author = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setAuthorBytes
public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setAuthorBytes(com.google.protobuf.ByteString value) Required. The ID of the agent or entity that generated this event.
optional string author = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for author to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasContentin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder- Returns:
- Whether the content field is set.
-
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];- Specified by:
getContentin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder- Returns:
- The content.
-
setContent
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]; -
setContent
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]; -
mergeContent
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]; -
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]; -
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]; -
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];- Specified by:
getContentOrBuilderin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder
-
hasEventTime
public boolean hasEventTime()Optional. The timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEventTimein interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder- Returns:
- Whether the eventTime field is set.
-
getEventTime
public com.google.protobuf.Timestamp getEventTime()Optional. The timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventTimein interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder- Returns:
- The eventTime.
-
setEventTime
public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setEventTime(com.google.protobuf.Timestamp value) Optional. The timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setEventTime
public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional. The timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeEventTime
public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder mergeEventTime(com.google.protobuf.Timestamp value) Optional. The timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearEventTime
Optional. The timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getEventTimeBuilder
public com.google.protobuf.Timestamp.Builder getEventTimeBuilder()Optional. The timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getEventTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()Optional. The timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventTimeOrBuilderin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder
-
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];- Specified by:
hasStateDeltain interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder- Returns:
- Whether the stateDelta field is set.
-
getStateDelta
public com.google.protobuf.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];- Specified by:
getStateDeltain interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder- Returns:
- The stateDelta.
-
setStateDelta
public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setStateDelta(com.google.protobuf.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]; -
setStateDelta
public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder setStateDelta(com.google.protobuf.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]; -
mergeStateDelta
public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder mergeStateDelta(com.google.protobuf.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]; -
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]; -
getStateDeltaBuilder
public com.google.protobuf.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]; -
getStateDeltaOrBuilder
public com.google.protobuf.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];- Specified by:
getStateDeltaOrBuilderin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder
-
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];- Specified by:
getActiveToolsListin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder
-
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];- Specified by:
getActiveToolsCountin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder
-
getActiveTools
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];- Specified by:
getActiveToolsin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder
-
setActiveTools
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]; -
setActiveTools
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]; -
addActiveTools
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]; -
addActiveTools
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]; -
addActiveTools
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]; -
addActiveTools
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]; -
addAllActiveTools
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]; -
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]; -
removeActiveTools
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]; -
getActiveToolsBuilder
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]; -
getActiveToolsOrBuilder
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];- Specified by:
getActiveToolsOrBuilderin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder
-
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];- Specified by:
getActiveToolsOrBuilderListin interfaceEvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder
-
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]; -
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]; -
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];
-