Package com.google.cloud.aiplatform.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.Optional.Optional.Optional.Optional.Required.Identifier.Optional.Required.Optional.Optional.Optional.Required.com.google.protobuf.ByteStringRequired.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.Optional.Required.com.google.protobuf.ByteStringRequired.getName()Identifier.com.google.protobuf.ByteStringIdentifier.com.google.protobuf.StructOptional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.com.google.protobuf.TimestampRequired.com.google.protobuf.Timestamp.BuilderRequired.com.google.protobuf.TimestampOrBuilderRequired.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeActions(EventActions value) Optional.mergeContent(Content value) Optional.mergeEventMetadata(EventMetadata value) Optional.mergeFrom(SessionEvent other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRawEvent(com.google.protobuf.Struct value) Optional.mergeTimestamp(com.google.protobuf.Timestamp value) Required.setActions(EventActions value) Optional.setActions(EventActions.Builder builderForValue) Optional.Required.setAuthorBytes(com.google.protobuf.ByteString value) Required.setContent(Content value) Optional.setContent(Content.Builder builderForValue) Optional.setErrorCode(String value) Optional.setErrorCodeBytes(com.google.protobuf.ByteString value) Optional.setErrorMessage(String value) Optional.setErrorMessageBytes(com.google.protobuf.ByteString value) Optional.setEventMetadata(EventMetadata value) Optional.setEventMetadata(EventMetadata.Builder builderForValue) Optional.setInvocationId(String value) Required.setInvocationIdBytes(com.google.protobuf.ByteString value) Required.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setRawEvent(com.google.protobuf.Struct value) Optional.setRawEvent(com.google.protobuf.Struct.Builder builderForValue) Optional.setTimestamp(com.google.protobuf.Timestamp value) Required.setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SessionEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SessionEvent.Builder>- Throws:
IOException
-
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:
getNamein interfaceSessionEventOrBuilder- 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:
getNameBytesin interfaceSessionEventOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
Required. The name of the agent that sent the event, or user.
string author = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAuthorin interfaceSessionEventOrBuilder- 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:
getAuthorBytesin interfaceSessionEventOrBuilder- Returns:
- The bytes for author.
-
setAuthor
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
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
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:
hasContentin interfaceSessionEventOrBuilder- Returns:
- Whether the content field is set.
-
getContent
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentin interfaceSessionEventOrBuilder- Returns:
- The content.
-
setContent
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setContent
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeContent
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearContent
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getContentBuilder
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getContentOrBuilder
Optional. Content of the event provided by the author.
.google.cloud.aiplatform.v1.Content content = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentOrBuilderin interfaceSessionEventOrBuilder
-
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:
getInvocationIdin interfaceSessionEventOrBuilder- 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:
getInvocationIdBytesin interfaceSessionEventOrBuilder- Returns:
- The bytes for invocationId.
-
setInvocationId
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
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
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:
hasActionsin interfaceSessionEventOrBuilder- Returns:
- Whether the actions field is set.
-
getActions
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActionsin interfaceSessionEventOrBuilder- Returns:
- The actions.
-
setActions
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setActions
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL]; -
mergeActions
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearActions
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getActionsBuilder
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getActionsOrBuilder
Optional. Actions executed by the agent.
.google.cloud.aiplatform.v1.EventActions actions = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActionsOrBuilderin interfaceSessionEventOrBuilder
-
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:
hasTimestampin interfaceSessionEventOrBuilder- 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:
getTimestampin interfaceSessionEventOrBuilder- Returns:
- The timestamp.
-
setTimestamp
Required. Timestamp when the event was created on client side.
.google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED]; -
setTimestamp
Required. Timestamp when the event was created on client side.
.google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED]; -
mergeTimestamp
Required. Timestamp when the event was created on client side.
.google.protobuf.Timestamp timestamp = 8 [(.google.api.field_behavior) = REQUIRED]; -
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:
getTimestampOrBuilderin interfaceSessionEventOrBuilder
-
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:
getErrorCodein interfaceSessionEventOrBuilder- 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:
getErrorCodeBytesin interfaceSessionEventOrBuilder- Returns:
- The bytes for errorCode.
-
setErrorCode
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
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
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
Optional. Error message if the response is an error.
string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getErrorMessagein interfaceSessionEventOrBuilder- 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:
getErrorMessageBytesin interfaceSessionEventOrBuilder- Returns:
- The bytes for errorMessage.
-
setErrorMessage
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
Optional. Error message if the response is an error.
string error_message = 10 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setErrorMessageBytes
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:
hasEventMetadatain interfaceSessionEventOrBuilder- Returns:
- Whether the eventMetadata field is set.
-
getEventMetadata
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventMetadatain interfaceSessionEventOrBuilder- Returns:
- The eventMetadata.
-
setEventMetadata
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; -
setEventMetadata
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; -
mergeEventMetadata
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; -
clearEventMetadata
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getEventMetadataBuilder
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getEventMetadataOrBuilder
Optional. Metadata relating to this event.
.google.cloud.aiplatform.v1.EventMetadata event_metadata = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventMetadataOrBuilderin interfaceSessionEventOrBuilder
-
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:
hasRawEventin interfaceSessionEventOrBuilder- 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:
getRawEventin interfaceSessionEventOrBuilder- Returns:
- The rawEvent.
-
setRawEvent
Optional. Weakly typed raw event data in proto struct format.
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL]; -
setRawEvent
Optional. Weakly typed raw event data in proto struct format.
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRawEvent
Optional. Weakly typed raw event data in proto struct format.
.google.protobuf.Struct raw_event = 12 [(.google.api.field_behavior) = OPTIONAL]; -
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:
getRawEventOrBuilderin interfaceSessionEventOrBuilder
-