Class AgentEvent

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1beta1.AgentEvent
All Implemented Interfaces:
AgentEventOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AgentEvent extends com.google.protobuf.GeneratedMessage implements AgentEventOrBuilder
 Represents a single event in the execution trace.
 
Protobuf type google.cloud.aiplatform.v1beta1.AgentEvent
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Represents a single event in the execution trace.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    getActiveTools(int index)
    Optional.
    int
    Optional.
    Optional.
    Optional.
    List<? extends ToolOrBuilder>
    Optional.
    Required.
    com.google.protobuf.ByteString
    Required.
    Required.
    Required.
    static AgentEvent
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Timestamp
    Optional.
    com.google.protobuf.TimestampOrBuilder
    Optional.
    com.google.protobuf.Parser<AgentEvent>
     
    int
     
    com.google.protobuf.Struct
    Optional.
    com.google.protobuf.StructOrBuilder
    Optional.
    boolean
    Required.
    boolean
    Required.
    boolean
    Optional.
    int
     
    boolean
    Optional.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static AgentEvent
     
    static AgentEvent
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AgentEvent
    parseFrom(byte[] data)
     
    static AgentEvent
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AgentEvent
    parseFrom(com.google.protobuf.ByteString data)
     
    static AgentEvent
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AgentEvent
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static AgentEvent
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AgentEvent
     
    static AgentEvent
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AgentEvent
     
    static AgentEvent
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<AgentEvent>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AgentEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AgentEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AgentEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AgentEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AgentEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AgentEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AgentEvent parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AgentEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AgentEvent parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AgentEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AgentEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AgentEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static AgentEvent.Builder newBuilder()
    • newBuilder

      public static AgentEvent.Builder newBuilder(AgentEvent prototype)
    • toBuilder

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

      protected AgentEvent.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AgentEvent getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AgentEvent> parser()
    • getParserForType

      public com.google.protobuf.Parser<AgentEvent> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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