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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AgentEvent.Builder>
    • clear

      public AgentEvent.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AgentEvent.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AgentEvent.Builder>
    • getDefaultInstanceForType

      public AgentEvent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AgentEvent build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AgentEvent buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AgentEvent.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AgentEvent.Builder>
    • mergeFrom

      public AgentEvent.Builder mergeFrom(AgentEvent other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasAuthor in interface AgentEventOrBuilder
      Returns:
      Whether the author field is set.
    • getAuthor

      public String 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:
      getAuthor in interface AgentEventOrBuilder
      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:
      getAuthorBytes in interface AgentEventOrBuilder
      Returns:
      The bytes for author.
    • setAuthor

      public AgentEvent.Builder setAuthor(String value)
       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

      public AgentEvent.Builder 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

      public AgentEvent.Builder setAuthorBytes(com.google.protobuf.ByteString value)
       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:
      hasContent in interface AgentEventOrBuilder
      Returns:
      Whether the content field is set.
    • getContent

      public Content 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:
      getContent in interface AgentEventOrBuilder
      Returns:
      The content.
    • setContent

      public AgentEvent.Builder setContent(Content value)
       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

      public AgentEvent.Builder setContent(Content.Builder builderForValue)
       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

      public AgentEvent.Builder mergeContent(Content value)
       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

      public AgentEvent.Builder 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

      public Content.Builder 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

      public ContentOrBuilder 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:
      getContentOrBuilder in interface 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:
      hasEventTime in interface 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:
      getEventTime in interface AgentEventOrBuilder
      Returns:
      The eventTime.
    • setEventTime

      public 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 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 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

      public AgentEvent.Builder 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:
      getEventTimeOrBuilder in interface 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:
      hasStateDelta in interface 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:
      getStateDelta in interface AgentEventOrBuilder
      Returns:
      The stateDelta.
    • setStateDelta

      public 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 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 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

      public 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];
    • 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:
      getStateDeltaOrBuilder in interface AgentEventOrBuilder
    • 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];
      Specified by:
      getActiveToolsList in interface 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:
      getActiveToolsCount in interface AgentEventOrBuilder
    • getActiveTools

      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];
      Specified by:
      getActiveTools in interface AgentEventOrBuilder
    • setActiveTools

      public 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 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

      public 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];
    • addActiveTools

      public 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 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 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 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

      public 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];
    • removeActiveTools

      public 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];
    • getActiveToolsBuilder

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

      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];
      Specified by:
      getActiveToolsOrBuilder in interface AgentEventOrBuilder
    • 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];
      Specified by:
      getActiveToolsOrBuilderList in interface AgentEventOrBuilder
    • 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];
    • addActiveToolsBuilder

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