Class AgentEvent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AgentEvent.Builder>
com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder
- All Implemented Interfaces:
AgentEventOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AgentEvent
public static final class AgentEvent.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AgentEvent.Builder>
implements AgentEventOrBuilder
Represents a single event in the execution trace.Protobuf type
google.cloud.aiplatform.v1beta1.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(AgentEvent other) 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<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<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<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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AgentEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AgentEvent.Builder>
-
mergeFrom
public 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<AgentEvent.Builder>- Throws:
IOException
-
hasAuthor
public boolean hasAuthor()Required. The ID of the agent or entity that generated this event. Use "user" to denote events generated by the end-user.
optional string author = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasAuthorin interfaceAgentEventOrBuilder- Returns:
- Whether the author field is set.
-
getAuthor
Required. The ID of the agent or entity that generated this event. Use "user" to denote events generated by the end-user.
optional string author = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAuthorin interfaceAgentEventOrBuilder- Returns:
- The author.
-
getAuthorBytes
public com.google.protobuf.ByteString getAuthorBytes()Required. The ID of the agent or entity that generated this event. Use "user" to denote events generated by the end-user.
optional string author = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAuthorBytesin interfaceAgentEventOrBuilder- Returns:
- The bytes for author.
-
setAuthor
Required. The ID of the agent or entity that generated this event. Use "user" to denote events generated by the end-user.
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. Use "user" to denote events generated by the end-user.
optional string author = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setAuthorBytes
Required. The ID of the agent or entity that generated this event. Use "user" to denote events generated by the end-user.
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).
optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasContentin interfaceAgentEventOrBuilder- Returns:
- Whether the content field is set.
-
getContent
Required. The content of the event (e.g., text response, tool call, tool response).
optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentin interfaceAgentEventOrBuilder- Returns:
- The content.
-
setContent
Required. The content of the event (e.g., text response, tool call, tool response).
optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; -
setContent
Required. The content of the event (e.g., text response, tool call, tool response).
optional .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).
optional .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).
optional .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).
optional .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).
optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentOrBuilderin interfaceAgentEventOrBuilder
-
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 interfaceAgentEventOrBuilder- 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 interfaceAgentEventOrBuilder- Returns:
- The eventTime.
-
setEventTime
Optional. The timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setEventTime
Optional. The timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeEventTime
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 interfaceAgentEventOrBuilder
-
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 interfaceAgentEventOrBuilder- 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 interfaceAgentEventOrBuilder- Returns:
- The stateDelta.
-
setStateDelta
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
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
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 interfaceAgentEventOrBuilder
-
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 interfaceAgentEventOrBuilder
-
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 interfaceAgentEventOrBuilder
-
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 interfaceAgentEventOrBuilder
-
setActiveTools
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
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
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
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
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 interfaceAgentEventOrBuilder
-
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 interfaceAgentEventOrBuilder
-
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];
-