Class SessionEvent.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder>
com.google.cloud.aiplatform.v1.SessionEvent.Builder
All Implemented Interfaces:
SessionEventOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SessionEvent

public static final class SessionEvent.Builder extends com.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder> implements SessionEventOrBuilder
 An event represents a message from either the user or agent.
 
Protobuf type google.cloud.aiplatform.v1.SessionEvent
  • 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<SessionEvent.Builder>
    • clear

      public SessionEvent.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<SessionEvent.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<SessionEvent.Builder>
    • getDefaultInstanceForType

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

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

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

      public SessionEvent.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<SessionEvent.Builder>
    • mergeFrom

      public SessionEvent.Builder mergeFrom(SessionEvent other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder>
    • mergeFrom

      public SessionEvent.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<SessionEvent.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The resource name of the event.
       Format:`projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface SessionEventOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the event.
       Format:`projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface SessionEventOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SessionEvent.Builder setName(String value)
       Identifier. The resource name of the event.
       Format:`projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SessionEvent.Builder clearName()
       Identifier. The resource name of the event.
       Format:`projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public SessionEvent.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of the event.
       Format:`projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getAuthor

      public String getAuthor()
       Required. The name of the agent that sent the event, or user.
       
      string author = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthor in interface SessionEventOrBuilder
      Returns:
      The author.
    • getAuthorBytes

      public com.google.protobuf.ByteString getAuthorBytes()
       Required. The name of the agent that sent the event, or user.
       
      string author = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorBytes in interface SessionEventOrBuilder
      Returns:
      The bytes for author.
    • setAuthor

      public SessionEvent.Builder setAuthor(String value)
       Required. The name of the agent that sent the event, or user.
       
      string author = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The author to set.
      Returns:
      This builder for chaining.
    • clearAuthor

      public SessionEvent.Builder clearAuthor()
       Required. The name of the agent that sent the event, or user.
       
      string author = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAuthorBytes

      public SessionEvent.Builder setAuthorBytes(com.google.protobuf.ByteString value)
       Required. The name of the agent that sent the event, or user.
       
      string author = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for author to set.
      Returns:
      This builder for chaining.
    • hasContent

      public boolean hasContent()
       Optional. Content of the event provided by the author.
       
      .google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasContent in interface SessionEventOrBuilder
      Returns:
      Whether the content field is set.
    • getContent

      public Content getContent()
       Optional. Content of the event provided by the author.
       
      .google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContent in interface SessionEventOrBuilder
      Returns:
      The content.
    • setContent

      public SessionEvent.Builder setContent(Content value)
       Optional. Content of the event provided by the author.
       
      .google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setContent

      public SessionEvent.Builder setContent(Content.Builder builderForValue)
       Optional. Content of the event provided by the author.
       
      .google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeContent

      public SessionEvent.Builder mergeContent(Content value)
       Optional. Content of the event provided by the author.
       
      .google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearContent

      public SessionEvent.Builder clearContent()
       Optional. Content of the event provided by the author.
       
      .google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getContentBuilder

      public Content.Builder getContentBuilder()
       Optional. Content of the event provided by the author.
       
      .google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getContentOrBuilder

      public ContentOrBuilder getContentOrBuilder()
       Optional. Content of the event provided by the author.
       
      .google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentOrBuilder in interface SessionEventOrBuilder
    • getInvocationId

      public String getInvocationId()
       Required. The invocation id of the event, multiple events can have the same
       invocation id.
       
      string invocation_id = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInvocationId in interface SessionEventOrBuilder
      Returns:
      The invocationId.
    • getInvocationIdBytes

      public com.google.protobuf.ByteString getInvocationIdBytes()
       Required. The invocation id of the event, multiple events can have the same
       invocation id.
       
      string invocation_id = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInvocationIdBytes in interface SessionEventOrBuilder
      Returns:
      The bytes for invocationId.
    • setInvocationId

      public SessionEvent.Builder setInvocationId(String value)
       Required. The invocation id of the event, multiple events can have the same
       invocation id.
       
      string invocation_id = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The invocationId to set.
      Returns:
      This builder for chaining.
    • clearInvocationId

      public SessionEvent.Builder clearInvocationId()
       Required. The invocation id of the event, multiple events can have the same
       invocation id.
       
      string invocation_id = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setInvocationIdBytes

      public SessionEvent.Builder setInvocationIdBytes(com.google.protobuf.ByteString value)
       Required. The invocation id of the event, multiple events can have the same
       invocation id.
       
      string invocation_id = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for invocationId to set.
      Returns:
      This builder for chaining.
    • hasActions

      public boolean hasActions()
       Optional. Actions executed by the agent.
       
      .google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasActions in interface SessionEventOrBuilder
      Returns:
      Whether the actions field is set.
    • getActions

      public EventActions getActions()
       Optional. Actions executed by the agent.
       
      .google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getActions in interface SessionEventOrBuilder
      Returns:
      The actions.
    • setActions

      public SessionEvent.Builder setActions(EventActions value)
       Optional. Actions executed by the agent.
       
      .google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setActions

      public SessionEvent.Builder setActions(EventActions.Builder builderForValue)
       Optional. Actions executed by the agent.
       
      .google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeActions

      public SessionEvent.Builder mergeActions(EventActions value)
       Optional. Actions executed by the agent.
       
      .google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearActions

      public SessionEvent.Builder clearActions()
       Optional. Actions executed by the agent.
       
      .google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getActionsBuilder

      public EventActions.Builder getActionsBuilder()
       Optional. Actions executed by the agent.
       
      .google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getActionsOrBuilder

      public EventActionsOrBuilder getActionsOrBuilder()
       Optional. Actions executed by the agent.
       
      .google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getActionsOrBuilder in interface SessionEventOrBuilder
    • hasTimestamp

      public boolean hasTimestamp()
       Required. Timestamp when the event was created on client side.
       
      .google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTimestamp in interface SessionEventOrBuilder
      Returns:
      Whether the timestamp field is set.
    • getTimestamp

      public com.google.protobuf.Timestamp getTimestamp()
       Required. Timestamp when the event was created on client side.
       
      .google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimestamp in interface SessionEventOrBuilder
      Returns:
      The timestamp.
    • setTimestamp

      public SessionEvent.Builder setTimestamp(com.google.protobuf.Timestamp value)
       Required. Timestamp when the event was created on client side.
       
      .google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
    • setTimestamp

      public SessionEvent.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. Timestamp when the event was created on client side.
       
      .google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
    • mergeTimestamp

      public SessionEvent.Builder mergeTimestamp(com.google.protobuf.Timestamp value)
       Required. Timestamp when the event was created on client side.
       
      .google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
    • clearTimestamp

      public SessionEvent.Builder clearTimestamp()
       Required. Timestamp when the event was created on client side.
       
      .google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
    • getTimestampBuilder

      public com.google.protobuf.Timestamp.Builder getTimestampBuilder()
       Required. Timestamp when the event was created on client side.
       
      .google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
    • getTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
       Required. Timestamp when the event was created on client side.
       
      .google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimestampOrBuilder in interface SessionEventOrBuilder
    • getErrorCode

      public String getErrorCode()
       Optional. Error code if the response is an error. Code varies by model.
       
      string error_code = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getErrorCode in interface SessionEventOrBuilder
      Returns:
      The errorCode.
    • getErrorCodeBytes

      public com.google.protobuf.ByteString getErrorCodeBytes()
       Optional. Error code if the response is an error. Code varies by model.
       
      string error_code = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getErrorCodeBytes in interface SessionEventOrBuilder
      Returns:
      The bytes for errorCode.
    • setErrorCode

      public SessionEvent.Builder setErrorCode(String value)
       Optional. Error code if the response is an error. Code varies by model.
       
      string error_code = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The errorCode to set.
      Returns:
      This builder for chaining.
    • clearErrorCode

      public SessionEvent.Builder clearErrorCode()
       Optional. Error code if the response is an error. Code varies by model.
       
      string error_code = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setErrorCodeBytes

      public SessionEvent.Builder setErrorCodeBytes(com.google.protobuf.ByteString value)
       Optional. Error code if the response is an error. Code varies by model.
       
      string error_code = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for errorCode to set.
      Returns:
      This builder for chaining.
    • getErrorMessage

      public String getErrorMessage()
       Optional. Error message if the response is an error.
       
      string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getErrorMessage in interface SessionEventOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
       Optional. Error message if the response is an error.
       
      string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getErrorMessageBytes in interface SessionEventOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public SessionEvent.Builder setErrorMessage(String value)
       Optional. Error message if the response is an error.
       
      string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The errorMessage to set.
      Returns:
      This builder for chaining.
    • clearErrorMessage

      public SessionEvent.Builder clearErrorMessage()
       Optional. Error message if the response is an error.
       
      string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

      public SessionEvent.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
       Optional. Error message if the response is an error.
       
      string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for errorMessage to set.
      Returns:
      This builder for chaining.
    • hasEventMetadata

      public boolean hasEventMetadata()
       Optional. Metadata relating to this event.
       
      .google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEventMetadata in interface SessionEventOrBuilder
      Returns:
      Whether the eventMetadata field is set.
    • getEventMetadata

      public EventMetadata getEventMetadata()
       Optional. Metadata relating to this event.
       
      .google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEventMetadata in interface SessionEventOrBuilder
      Returns:
      The eventMetadata.
    • setEventMetadata

      public SessionEvent.Builder setEventMetadata(EventMetadata value)
       Optional. Metadata relating to this event.
       
      .google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
    • setEventMetadata

      public SessionEvent.Builder setEventMetadata(EventMetadata.Builder builderForValue)
       Optional. Metadata relating to this event.
       
      .google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
    • mergeEventMetadata

      public SessionEvent.Builder mergeEventMetadata(EventMetadata value)
       Optional. Metadata relating to this event.
       
      .google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
    • clearEventMetadata

      public SessionEvent.Builder clearEventMetadata()
       Optional. Metadata relating to this event.
       
      .google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getEventMetadataBuilder

      public EventMetadata.Builder getEventMetadataBuilder()
       Optional. Metadata relating to this event.
       
      .google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getEventMetadataOrBuilder

      public EventMetadataOrBuilder getEventMetadataOrBuilder()
       Optional. Metadata relating to this event.
       
      .google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEventMetadataOrBuilder in interface SessionEventOrBuilder
    • hasRawEvent

      public boolean hasRawEvent()
       Optional. Weakly typed raw event data in proto struct format.
       
      .google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRawEvent in interface SessionEventOrBuilder
      Returns:
      Whether the rawEvent field is set.
    • getRawEvent

      public com.google.protobuf.Struct getRawEvent()
       Optional. Weakly typed raw event data in proto struct format.
       
      .google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRawEvent in interface SessionEventOrBuilder
      Returns:
      The rawEvent.
    • setRawEvent

      public SessionEvent.Builder setRawEvent(com.google.protobuf.Struct value)
       Optional. Weakly typed raw event data in proto struct format.
       
      .google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
    • setRawEvent

      public SessionEvent.Builder setRawEvent(com.google.protobuf.Struct.Builder builderForValue)
       Optional. Weakly typed raw event data in proto struct format.
       
      .google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRawEvent

      public SessionEvent.Builder mergeRawEvent(com.google.protobuf.Struct value)
       Optional. Weakly typed raw event data in proto struct format.
       
      .google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
    • clearRawEvent

      public SessionEvent.Builder clearRawEvent()
       Optional. Weakly typed raw event data in proto struct format.
       
      .google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
    • getRawEventBuilder

      public com.google.protobuf.Struct.Builder getRawEventBuilder()
       Optional. Weakly typed raw event data in proto struct format.
       
      .google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
    • getRawEventOrBuilder

      public com.google.protobuf.StructOrBuilder getRawEventOrBuilder()
       Optional. Weakly typed raw event data in proto struct format.
       
      .google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRawEventOrBuilder in interface SessionEventOrBuilder