Class AssistantSession.Builder (0.19.0)

public static final class AssistantSession.Builder extends GeneratedMessage.Builder<AssistantSession.Builder> implements AssistantSessionOrBuilder

An assistant session represents a conversation between a user and the assistant agent.

Protobuf type google.cloud.ces.v1beta.AssistantSession

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllArtifacts(Iterable<? extends AssistantSessionArtifact> values)

public AssistantSession.Builder addAllArtifacts(Iterable<? extends AssistantSessionArtifact> values)

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1beta.AssistantSessionArtifact>
Returns
Type Description
AssistantSession.Builder

addAllMessages(Iterable<? extends AssistantMessage> values)

public AssistantSession.Builder addAllMessages(Iterable<? extends AssistantMessage> values)

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1beta.AssistantMessage>
Returns
Type Description
AssistantSession.Builder

addArtifacts(AssistantSessionArtifact value)

public AssistantSession.Builder addArtifacts(AssistantSessionArtifact value)

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AssistantSessionArtifact
Returns
Type Description
AssistantSession.Builder

addArtifacts(AssistantSessionArtifact.Builder builderForValue)

public AssistantSession.Builder addArtifacts(AssistantSessionArtifact.Builder builderForValue)

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue AssistantSessionArtifact.Builder
Returns
Type Description
AssistantSession.Builder

addArtifacts(int index, AssistantSessionArtifact value)

public AssistantSession.Builder addArtifacts(int index, AssistantSessionArtifact value)

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value AssistantSessionArtifact
Returns
Type Description
AssistantSession.Builder

addArtifacts(int index, AssistantSessionArtifact.Builder builderForValue)

public AssistantSession.Builder addArtifacts(int index, AssistantSessionArtifact.Builder builderForValue)

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue AssistantSessionArtifact.Builder
Returns
Type Description
AssistantSession.Builder

addArtifactsBuilder()

public AssistantSessionArtifact.Builder addArtifactsBuilder()

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AssistantSessionArtifact.Builder

addArtifactsBuilder(int index)

public AssistantSessionArtifact.Builder addArtifactsBuilder(int index)

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AssistantSessionArtifact.Builder

addMessages(AssistantMessage value)

public AssistantSession.Builder addMessages(AssistantMessage value)

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AssistantMessage
Returns
Type Description
AssistantSession.Builder

addMessages(AssistantMessage.Builder builderForValue)

public AssistantSession.Builder addMessages(AssistantMessage.Builder builderForValue)

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AssistantMessage.Builder
Returns
Type Description
AssistantSession.Builder

addMessages(int index, AssistantMessage value)

public AssistantSession.Builder addMessages(int index, AssistantMessage value)

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AssistantMessage
Returns
Type Description
AssistantSession.Builder

addMessages(int index, AssistantMessage.Builder builderForValue)

public AssistantSession.Builder addMessages(int index, AssistantMessage.Builder builderForValue)

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AssistantMessage.Builder
Returns
Type Description
AssistantSession.Builder

addMessagesBuilder()

public AssistantMessage.Builder addMessagesBuilder()

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AssistantMessage.Builder

addMessagesBuilder(int index)

public AssistantMessage.Builder addMessagesBuilder(int index)

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AssistantMessage.Builder

build()

public AssistantSession build()
Returns
Type Description
AssistantSession

buildPartial()

public AssistantSession buildPartial()
Returns
Type Description
AssistantSession

clear()

public AssistantSession.Builder clear()
Returns
Type Description
AssistantSession.Builder
Overrides

clearActiveTurn()

public AssistantSession.Builder clearActiveTurn()

Output only. Attachment info for this session's currently running turn. Unset when no turn is running.

.google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AssistantSession.Builder

clearArtifacts()

public AssistantSession.Builder clearArtifacts()

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AssistantSession.Builder

clearCreateTime()

public AssistantSession.Builder clearCreateTime()

Output only. The time the assistant session was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AssistantSession.Builder

clearDisplayName()

public AssistantSession.Builder clearDisplayName()

Optional. The display name of the assistant session.

string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AssistantSession.Builder

This builder for chaining.

clearMessages()

public AssistantSession.Builder clearMessages()

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AssistantSession.Builder

clearName()

public AssistantSession.Builder clearName()

Required. Identifier. The unique identifier of the session. Format: projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AssistantSession.Builder

This builder for chaining.

clearRequestor()

public AssistantSession.Builder clearRequestor()

Output only. The user who initiated the session.

string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AssistantSession.Builder

This builder for chaining.

clearSessionCheckpoint()

public AssistantSession.Builder clearSessionCheckpoint()

Output only. Session checkpoint containing user intent and rolling history summary.

.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AssistantSession.Builder

clearState()

public AssistantSession.Builder clearState()

Output only. The status of the assistant session.

.google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AssistantSession.Builder

This builder for chaining.

clearUpdateTime()

public AssistantSession.Builder clearUpdateTime()

Output only. The time the assistant session was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AssistantSession.Builder

clearUserResponseSuggestions()

public AssistantSession.Builder clearUserResponseSuggestions()

Output only. Suggested user responses from the assistant agent.

.google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AssistantSession.Builder

getActiveTurn()

public ActiveTurnInfo getActiveTurn()

Output only. Attachment info for this session's currently running turn. Unset when no turn is running.

.google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ActiveTurnInfo

The activeTurn.

getActiveTurnBuilder()

public ActiveTurnInfo.Builder getActiveTurnBuilder()

Output only. Attachment info for this session's currently running turn. Unset when no turn is running.

.google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ActiveTurnInfo.Builder

getActiveTurnOrBuilder()

public ActiveTurnInfoOrBuilder getActiveTurnOrBuilder()

Output only. Attachment info for this session's currently running turn. Unset when no turn is running.

.google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ActiveTurnInfoOrBuilder

getArtifacts(int index)

public AssistantSessionArtifact getArtifacts(int index)

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AssistantSessionArtifact

getArtifactsBuilder(int index)

public AssistantSessionArtifact.Builder getArtifactsBuilder(int index)

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AssistantSessionArtifact.Builder

getArtifactsBuilderList()

public List<AssistantSessionArtifact.Builder> getArtifactsBuilderList()

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getArtifactsCount()

public int getArtifactsCount()

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getArtifactsList()

public List<AssistantSessionArtifact> getArtifactsList()

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<AssistantSessionArtifact>

getArtifactsOrBuilder(int index)

public AssistantSessionArtifactOrBuilder getArtifactsOrBuilder(int index)

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AssistantSessionArtifactOrBuilder

getArtifactsOrBuilderList()

public List<? extends AssistantSessionArtifactOrBuilder> getArtifactsOrBuilderList()

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder>

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the assistant session was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time the assistant session was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the assistant session was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public AssistantSession getDefaultInstanceForType()
Returns
Type Description
AssistantSession

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. The display name of the assistant session.

string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The display name of the assistant session.

string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getMessages(int index)

public AssistantMessage getMessages(int index)

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AssistantMessage

getMessagesBuilder(int index)

public AssistantMessage.Builder getMessagesBuilder(int index)

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AssistantMessage.Builder

getMessagesBuilderList()

public List<AssistantMessage.Builder> getMessagesBuilderList()

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getMessagesCount()

public int getMessagesCount()

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getMessagesList()

public List<AssistantMessage> getMessagesList()

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AssistantMessage>

getMessagesOrBuilder(int index)

public AssistantMessageOrBuilder getMessagesOrBuilder(int index)

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AssistantMessageOrBuilder

getMessagesOrBuilderList()

public List<? extends AssistantMessageOrBuilder> getMessagesOrBuilderList()

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.AssistantMessageOrBuilder>

getName()

public String getName()

Required. Identifier. The unique identifier of the session. Format: projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Identifier. The unique identifier of the session. Format: projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getRequestor()

public String getRequestor()

Output only. The user who initiated the session.

string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The requestor.

getRequestorBytes()

public ByteString getRequestorBytes()

Output only. The user who initiated the session.

string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for requestor.

getSessionCheckpoint()

public SessionCheckpoint getSessionCheckpoint()

Output only. Session checkpoint containing user intent and rolling history summary.

.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SessionCheckpoint

The sessionCheckpoint.

getSessionCheckpointBuilder()

public SessionCheckpoint.Builder getSessionCheckpointBuilder()

Output only. Session checkpoint containing user intent and rolling history summary.

.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SessionCheckpoint.Builder

getSessionCheckpointOrBuilder()

public SessionCheckpointOrBuilder getSessionCheckpointOrBuilder()

Output only. Session checkpoint containing user intent and rolling history summary.

.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SessionCheckpointOrBuilder

getState()

public AssistantSessionState getState()

Output only. The status of the assistant session.

.google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AssistantSessionState

The state.

getStateValue()

public int getStateValue()

Output only. The status of the assistant session.

.google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time the assistant session was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time the assistant session was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time the assistant session was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getUserResponseSuggestions()

public UserResponseSuggestions getUserResponseSuggestions()

Output only. Suggested user responses from the assistant agent.

.google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UserResponseSuggestions

The userResponseSuggestions.

getUserResponseSuggestionsBuilder()

public UserResponseSuggestions.Builder getUserResponseSuggestionsBuilder()

Output only. Suggested user responses from the assistant agent.

.google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UserResponseSuggestions.Builder

getUserResponseSuggestionsOrBuilder()

public UserResponseSuggestionsOrBuilder getUserResponseSuggestionsOrBuilder()

Output only. Suggested user responses from the assistant agent.

.google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UserResponseSuggestionsOrBuilder

hasActiveTurn()

public boolean hasActiveTurn()

Output only. Attachment info for this session's currently running turn. Unset when no turn is running.

.google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the activeTurn field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the assistant session was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasSessionCheckpoint()

public boolean hasSessionCheckpoint()

Output only. Session checkpoint containing user intent and rolling history summary.

.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the sessionCheckpoint field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time the assistant session was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hasUserResponseSuggestions()

public boolean hasUserResponseSuggestions()

Output only. Suggested user responses from the assistant agent.

.google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the userResponseSuggestions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeActiveTurn(ActiveTurnInfo value)

public AssistantSession.Builder mergeActiveTurn(ActiveTurnInfo value)

Output only. Attachment info for this session's currently running turn. Unset when no turn is running.

.google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ActiveTurnInfo
Returns
Type Description
AssistantSession.Builder

mergeCreateTime(Timestamp value)

public AssistantSession.Builder mergeCreateTime(Timestamp value)

Output only. The time the assistant session was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AssistantSession.Builder

mergeFrom(AssistantSession other)

public AssistantSession.Builder mergeFrom(AssistantSession other)
Parameter
Name Description
other AssistantSession
Returns
Type Description
AssistantSession.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AssistantSession.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantSession.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AssistantSession.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AssistantSession.Builder
Overrides

mergeSessionCheckpoint(SessionCheckpoint value)

public AssistantSession.Builder mergeSessionCheckpoint(SessionCheckpoint value)

Output only. Session checkpoint containing user intent and rolling history summary.

.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SessionCheckpoint
Returns
Type Description
AssistantSession.Builder

mergeUpdateTime(Timestamp value)

public AssistantSession.Builder mergeUpdateTime(Timestamp value)

Output only. The time the assistant session was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AssistantSession.Builder

mergeUserResponseSuggestions(UserResponseSuggestions value)

public AssistantSession.Builder mergeUserResponseSuggestions(UserResponseSuggestions value)

Output only. Suggested user responses from the assistant agent.

.google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value UserResponseSuggestions
Returns
Type Description
AssistantSession.Builder

removeArtifacts(int index)

public AssistantSession.Builder removeArtifacts(int index)

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AssistantSession.Builder

removeMessages(int index)

public AssistantSession.Builder removeMessages(int index)

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AssistantSession.Builder

setActiveTurn(ActiveTurnInfo value)

public AssistantSession.Builder setActiveTurn(ActiveTurnInfo value)

Output only. Attachment info for this session's currently running turn. Unset when no turn is running.

.google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ActiveTurnInfo
Returns
Type Description
AssistantSession.Builder

setActiveTurn(ActiveTurnInfo.Builder builderForValue)

public AssistantSession.Builder setActiveTurn(ActiveTurnInfo.Builder builderForValue)

Output only. Attachment info for this session's currently running turn. Unset when no turn is running.

.google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ActiveTurnInfo.Builder
Returns
Type Description
AssistantSession.Builder

setArtifacts(int index, AssistantSessionArtifact value)

public AssistantSession.Builder setArtifacts(int index, AssistantSessionArtifact value)

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value AssistantSessionArtifact
Returns
Type Description
AssistantSession.Builder

setArtifacts(int index, AssistantSessionArtifact.Builder builderForValue)

public AssistantSession.Builder setArtifacts(int index, AssistantSessionArtifact.Builder builderForValue)

Output only. Document artifacts (e.g. generated TDDs in markdown) produced by the assistant in this session. Pointers only; the file content lives in the customer's Cloud Storage bucket.

repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue AssistantSessionArtifact.Builder
Returns
Type Description
AssistantSession.Builder

setCreateTime(Timestamp value)

public AssistantSession.Builder setCreateTime(Timestamp value)

Output only. The time the assistant session was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AssistantSession.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AssistantSession.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the assistant session was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AssistantSession.Builder

setDisplayName(String value)

public AssistantSession.Builder setDisplayName(String value)

Optional. The display name of the assistant session.

string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
AssistantSession.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public AssistantSession.Builder setDisplayNameBytes(ByteString value)

Optional. The display name of the assistant session.

string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
AssistantSession.Builder

This builder for chaining.

setMessages(int index, AssistantMessage value)

public AssistantSession.Builder setMessages(int index, AssistantMessage value)

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AssistantMessage
Returns
Type Description
AssistantSession.Builder

setMessages(int index, AssistantMessage.Builder builderForValue)

public AssistantSession.Builder setMessages(int index, AssistantMessage.Builder builderForValue)

Optional. History of messages in the session.

repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AssistantMessage.Builder
Returns
Type Description
AssistantSession.Builder

setName(String value)

public AssistantSession.Builder setName(String value)

Required. Identifier. The unique identifier of the session. Format: projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AssistantSession.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AssistantSession.Builder setNameBytes(ByteString value)

Required. Identifier. The unique identifier of the session. Format: projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AssistantSession.Builder

This builder for chaining.

setRequestor(String value)

public AssistantSession.Builder setRequestor(String value)

Output only. The user who initiated the session.

string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The requestor to set.

Returns
Type Description
AssistantSession.Builder

This builder for chaining.

setRequestorBytes(ByteString value)

public AssistantSession.Builder setRequestorBytes(ByteString value)

Output only. The user who initiated the session.

string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for requestor to set.

Returns
Type Description
AssistantSession.Builder

This builder for chaining.

setSessionCheckpoint(SessionCheckpoint value)

public AssistantSession.Builder setSessionCheckpoint(SessionCheckpoint value)

Output only. Session checkpoint containing user intent and rolling history summary.

.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SessionCheckpoint
Returns
Type Description
AssistantSession.Builder

setSessionCheckpoint(SessionCheckpoint.Builder builderForValue)

public AssistantSession.Builder setSessionCheckpoint(SessionCheckpoint.Builder builderForValue)

Output only. Session checkpoint containing user intent and rolling history summary.

.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue SessionCheckpoint.Builder
Returns
Type Description
AssistantSession.Builder

setState(AssistantSessionState value)

public AssistantSession.Builder setState(AssistantSessionState value)

Output only. The status of the assistant session.

.google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AssistantSessionState

The state to set.

Returns
Type Description
AssistantSession.Builder

This builder for chaining.

setStateValue(int value)

public AssistantSession.Builder setStateValue(int value)

Output only. The status of the assistant session.

.google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
AssistantSession.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public AssistantSession.Builder setUpdateTime(Timestamp value)

Output only. The time the assistant session was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AssistantSession.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public AssistantSession.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time the assistant session was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AssistantSession.Builder

setUserResponseSuggestions(UserResponseSuggestions value)

public AssistantSession.Builder setUserResponseSuggestions(UserResponseSuggestions value)

Output only. Suggested user responses from the assistant agent.

.google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value UserResponseSuggestions
Returns
Type Description
AssistantSession.Builder

setUserResponseSuggestions(UserResponseSuggestions.Builder builderForValue)

public AssistantSession.Builder setUserResponseSuggestions(UserResponseSuggestions.Builder builderForValue)

Output only. Suggested user responses from the assistant agent.

.google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue UserResponseSuggestions.Builder
Returns
Type Description
AssistantSession.Builder