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 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<EvaluationInstance.DeprecatedAgentData.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<EvaluationInstance.DeprecatedAgentData.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<EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public EvaluationInstance.DeprecatedAgentData.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<EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<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:
      hasAuthor in interface EvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder
      Returns:
      Whether the author field is set.
    • 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];
      Specified by:
      getAuthor in interface EvaluationInstance.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:
      getAuthorBytes in interface EvaluationInstance.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:
      hasContent in interface EvaluationInstance.DeprecatedAgentData.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).
       
      .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContent in interface EvaluationInstance.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

       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

      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];
    • 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];
      Specified by:
      getContentOrBuilder in interface EvaluationInstance.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:
      hasEventTime in interface EvaluationInstance.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:
      getEventTime in interface EvaluationInstance.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:
      getEventTimeOrBuilder in interface EvaluationInstance.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:
      hasStateDelta in interface EvaluationInstance.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:
      getStateDelta in interface EvaluationInstance.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:
      getStateDeltaOrBuilder in interface EvaluationInstance.DeprecatedAgentData.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 EvaluationInstance.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:
      getActiveToolsCount in interface EvaluationInstance.DeprecatedAgentData.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 EvaluationInstance.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

       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

      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];
    • 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 EvaluationInstance.DeprecatedAgentData.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 EvaluationInstance.DeprecatedAgentData.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];