public final class SessionEvent extends com.google.protobuf.GeneratedMessageV3 implements SessionEventOrBuilder
An event represents a message from either the user or agent.Protobuf type
google.cloud.aiplatform.v1beta1.SessionEvent| Modifier and Type | Class and Description |
|---|---|
static class |
SessionEvent.Builder
An event represents a message from either the user or agent.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIONS_FIELD_NUMBER |
static int |
AUTHOR_FIELD_NUMBER |
static int |
CONTENT_FIELD_NUMBER |
static int |
ERROR_CODE_FIELD_NUMBER |
static int |
ERROR_MESSAGE_FIELD_NUMBER |
static int |
EVENT_METADATA_FIELD_NUMBER |
static int |
INVOCATION_ID_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
EventActions |
getActions()
Optional.
|
EventActionsOrBuilder |
getActionsOrBuilder()
Optional.
|
String |
getAuthor()
Required.
|
com.google.protobuf.ByteString |
getAuthorBytes()
Required.
|
Content |
getContent()
Optional.
|
ContentOrBuilder |
getContentOrBuilder()
Optional.
|
static SessionEvent |
getDefaultInstance() |
SessionEvent |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getErrorCode()
Optional.
|
com.google.protobuf.ByteString |
getErrorCodeBytes()
Optional.
|
String |
getErrorMessage()
Optional.
|
com.google.protobuf.ByteString |
getErrorMessageBytes()
Optional.
|
EventMetadata |
getEventMetadata()
Optional.
|
EventMetadataOrBuilder |
getEventMetadataOrBuilder()
Optional.
|
String |
getInvocationId()
Required.
|
com.google.protobuf.ByteString |
getInvocationIdBytes()
Required.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.Parser<SessionEvent> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getTimestamp()
Required.
|
com.google.protobuf.TimestampOrBuilder |
getTimestampOrBuilder()
Required.
|
boolean |
hasActions()
Optional.
|
boolean |
hasContent()
Optional.
|
boolean |
hasEventMetadata()
Optional.
|
int |
hashCode() |
boolean |
hasTimestamp()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SessionEvent.Builder |
newBuilder() |
static SessionEvent.Builder |
newBuilder(SessionEvent prototype) |
SessionEvent.Builder |
newBuilderForType() |
protected SessionEvent.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SessionEvent |
parseDelimitedFrom(InputStream input) |
static SessionEvent |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SessionEvent |
parseFrom(byte[] data) |
static SessionEvent |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SessionEvent |
parseFrom(ByteBuffer data) |
static SessionEvent |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SessionEvent |
parseFrom(com.google.protobuf.ByteString data) |
static SessionEvent |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SessionEvent |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SessionEvent |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SessionEvent |
parseFrom(InputStream input) |
static SessionEvent |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SessionEvent> |
parser() |
SessionEvent.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int AUTHOR_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
public static final int INVOCATION_ID_FIELD_NUMBER
public static final int ACTIONS_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
public static final int ERROR_CODE_FIELD_NUMBER
public static final int ERROR_MESSAGE_FIELD_NUMBER
public static final int EVENT_METADATA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 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 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 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 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 boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SessionEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SessionEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SessionEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SessionEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SessionEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SessionEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SessionEvent parseFrom(InputStream input) throws IOException
IOExceptionpublic static SessionEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SessionEvent parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SessionEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SessionEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SessionEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SessionEvent.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SessionEvent.Builder newBuilder()
public static SessionEvent.Builder newBuilder(SessionEvent prototype)
public SessionEvent.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SessionEvent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SessionEvent getDefaultInstance()
public static com.google.protobuf.Parser<SessionEvent> parser()
public com.google.protobuf.Parser<SessionEvent> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SessionEvent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.