public static final class SessionEvent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder> implements SessionEventOrBuilder
An event represents a message from either the user or agent.Protobuf type
google.cloud.aiplatform.v1beta1.SessionEventgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>public SessionEvent.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>public SessionEvent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SessionEvent build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SessionEvent buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SessionEvent.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>public SessionEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>public SessionEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>public SessionEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>public SessionEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>public SessionEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>public SessionEvent.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SessionEvent.Builder>public SessionEvent.Builder mergeFrom(SessionEvent other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>public SessionEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SessionEvent.Builder>IOExceptionpublic String getName()
Required. 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) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
getName in interface SessionEventOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. 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) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
getNameBytes in interface SessionEventOrBuilderpublic SessionEvent.Builder setName(String value)
Required. 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) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
value - The name to set.public SessionEvent.Builder clearName()
Required. 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) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
public SessionEvent.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. 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) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
value - The bytes for name to set.public String getAuthor()
Required. The name of the agent that sent the event, or user.
string author = 3 [(.google.api.field_behavior) = REQUIRED];getAuthor in interface SessionEventOrBuilderpublic 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];getAuthorBytes in interface SessionEventOrBuilderpublic 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];value - The author to set.public SessionEvent.Builder clearAuthor()
Required. The name of the agent that sent the event, or user.
string author = 3 [(.google.api.field_behavior) = REQUIRED];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];value - The bytes for author to set.public boolean hasContent()
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1beta1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
hasContent in interface SessionEventOrBuilderpublic Content getContent()
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1beta1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
getContent in interface SessionEventOrBuilderpublic SessionEvent.Builder setContent(Content value)
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1beta1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
public SessionEvent.Builder setContent(Content.Builder builderForValue)
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1beta1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
public SessionEvent.Builder mergeContent(Content value)
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1beta1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
public SessionEvent.Builder clearContent()
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1beta1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
public Content.Builder getContentBuilder()
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1beta1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
public ContentOrBuilder getContentOrBuilder()
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1beta1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
getContentOrBuilder in interface SessionEventOrBuilderpublic 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];getInvocationId in interface SessionEventOrBuilderpublic 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];getInvocationIdBytes in interface SessionEventOrBuilderpublic 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];value - The invocationId to set.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];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];value - The bytes for invocationId to set.public boolean hasActions()
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1beta1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
hasActions in interface SessionEventOrBuilderpublic EventActions getActions()
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1beta1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
getActions in interface SessionEventOrBuilderpublic SessionEvent.Builder setActions(EventActions value)
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1beta1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
public SessionEvent.Builder setActions(EventActions.Builder builderForValue)
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1beta1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
public SessionEvent.Builder mergeActions(EventActions value)
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1beta1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
public SessionEvent.Builder clearActions()
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1beta1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
public EventActions.Builder getActionsBuilder()
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1beta1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
public EventActionsOrBuilder getActionsOrBuilder()
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1beta1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
getActionsOrBuilder in interface SessionEventOrBuilderpublic boolean hasTimestamp()
Required. Timestamp when the event was created on client side.
.google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
hasTimestamp in interface SessionEventOrBuilderpublic 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];
getTimestamp in interface SessionEventOrBuilderpublic 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];
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];
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];
public SessionEvent.Builder clearTimestamp()
Required. Timestamp when the event was created on client side.
.google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
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];
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];
getTimestampOrBuilder in interface SessionEventOrBuilderpublic String getErrorCode()
Optional. Error code if the response is an error. Code varies by model.
string error_code = 9 [(.google.api.field_behavior) = OPTIONAL];getErrorCode in interface SessionEventOrBuilderpublic 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];getErrorCodeBytes in interface SessionEventOrBuilderpublic 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];value - The errorCode to set.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];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];value - The bytes for errorCode to set.public String getErrorMessage()
Optional. Error message if the response is an error.
string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];getErrorMessage in interface SessionEventOrBuilderpublic com.google.protobuf.ByteString getErrorMessageBytes()
Optional. Error message if the response is an error.
string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];getErrorMessageBytes in interface SessionEventOrBuilderpublic SessionEvent.Builder setErrorMessage(String value)
Optional. Error message if the response is an error.
string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];value - The errorMessage to set.public SessionEvent.Builder clearErrorMessage()
Optional. Error message if the response is an error.
string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];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];value - The bytes for errorMessage to set.public boolean hasEventMetadata()
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1beta1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
hasEventMetadata in interface SessionEventOrBuilderpublic EventMetadata getEventMetadata()
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1beta1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
getEventMetadata in interface SessionEventOrBuilderpublic SessionEvent.Builder setEventMetadata(EventMetadata value)
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1beta1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
public SessionEvent.Builder setEventMetadata(EventMetadata.Builder builderForValue)
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1beta1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
public SessionEvent.Builder mergeEventMetadata(EventMetadata value)
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1beta1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
public SessionEvent.Builder clearEventMetadata()
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1beta1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
public EventMetadata.Builder getEventMetadataBuilder()
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1beta1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
public EventMetadataOrBuilder getEventMetadataOrBuilder()
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1beta1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
getEventMetadataOrBuilder in interface SessionEventOrBuilderpublic final SessionEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>public final SessionEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>Copyright © 2025 Google LLC. All rights reserved.