public final class SessionEvent extends GeneratedMessageV3 implements SessionEventOrBuilder
An event represents a message from either the user or agent.
Protobuf type google.cloud.aiplatform.v1beta1.SessionEvent
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ACTIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int AUTHOR_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ERROR_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ERROR_MESSAGE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int EVENT_METADATA_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int INVOCATION_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TIMESTAMP_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static SessionEvent getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static SessionEvent.Builder newBuilder()
public static SessionEvent.Builder newBuilder(SessionEvent prototype)
public static SessionEvent parseDelimitedFrom(InputStream input)
public static SessionEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SessionEvent parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static SessionEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SessionEvent parseFrom(ByteString data)
public static SessionEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SessionEvent parseFrom(CodedInputStream input)
public static SessionEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SessionEvent parseFrom(InputStream input)
public static SessionEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SessionEvent parseFrom(ByteBuffer data)
public static SessionEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<SessionEvent> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public EventActions getActions()
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];
public String getAuthor()
Required. The name of the agent that sent the event, or user.
string author = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The author.
|
public ByteString getAuthorBytes()
Required. The name of the agent that sent the event, or user.
string author = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for author.
|
getContent()
public Content getContent()
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1beta1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
Content |
The content.
|
getContentOrBuilder()
public ContentOrBuilder getContentOrBuilder()
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1beta1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
public SessionEvent getDefaultInstanceForType()
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];
Returns |
Type |
Description |
String |
The errorCode.
|
public ByteString getErrorCodeBytes()
Optional. Error code if the response is an error. Code varies by model.
string error_code = 9 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for errorCode.
|
public String getErrorMessage()
Optional. Error message if the response is an error.
string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The errorMessage.
|
public ByteString getErrorMessageBytes()
Optional. Error message if the response is an error.
string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for errorMessage.
|
public EventMetadata getEventMetadata()
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];
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];
Returns |
Type |
Description |
String |
The invocationId.
|
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for invocationId.
|
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];
Returns |
Type |
Description |
String |
The name.
|
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
public Parser<SessionEvent> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public Timestamp getTimestamp()
Required. Timestamp when the event was created on client side.
.google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
Timestamp |
The timestamp.
|
public TimestampOrBuilder getTimestampOrBuilder()
Required. Timestamp when the event was created on client side.
.google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
public boolean hasActions()
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1beta1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the actions field is set.
|
hasContent()
public boolean hasContent()
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1beta1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the content field is set.
|
public boolean hasEventMetadata()
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1beta1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the eventMetadata field is set.
|
public boolean hasTimestamp()
Required. Timestamp when the event was created on client side.
.google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the timestamp field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public SessionEvent.Builder newBuilderForType()
protected SessionEvent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public SessionEvent.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides