Class Feedback.ConversationInfo.Builder (0.99.0)

public static final class Feedback.ConversationInfo.Builder extends GeneratedMessage.Builder<Feedback.ConversationInfo.Builder> implements Feedback.ConversationInfoOrBuilder

The conversation information such as the question index and session name.

Protobuf type google.cloud.discoveryengine.v1.Feedback.ConversationInfo

Static Methods

getDescriptor()

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

Methods

build()

public Feedback.ConversationInfo build()
Returns
Type Description
Feedback.ConversationInfo

buildPartial()

public Feedback.ConversationInfo buildPartial()
Returns
Type Description
Feedback.ConversationInfo

clear()

public Feedback.ConversationInfo.Builder clear()
Returns
Type Description
Feedback.ConversationInfo.Builder
Overrides

clearAnswerQueryToken()

public Feedback.ConversationInfo.Builder clearAnswerQueryToken()

Optional. The token which could be used to fetch the answer log.

string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

clearAssistToken()

public Feedback.ConversationInfo.Builder clearAssistToken()

Optional. The token which could be used to fetch the assistant log.

string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

clearQuery()

public Feedback.ConversationInfo.Builder clearQuery()

Required. The user's search query.

.google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Feedback.ConversationInfo.Builder

clearQuestionIndex()

public Feedback.ConversationInfo.Builder clearQuestionIndex()

The index of the user input within the conversation messages.

int32 question_index = 1;

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

clearSession()

public Feedback.ConversationInfo.Builder clearSession()

Name of the newly generated or continued session.

string session = 2;

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

clearStepSeqNum()

public Feedback.ConversationInfo.Builder clearStepSeqNum()

Optional. The TaskServerEvent.seq_num of the step that opened the rated agent task reply.

int64 step_seq_num = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

clearTaskName()

public Feedback.ConversationInfo.Builder clearTaskName()

Optional. The full resource name of the Sobi task if the conversation was handled by a long-running agent task. Format (canonical, or the short alias the Task API also accepts): projects/{project}/locations/{location}/agents/{agent}/tasks/{task} projects/{project}/locations/{location}/tasks/{task}

string task_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

clearTrajectoryId()

public Feedback.ConversationInfo.Builder clearTrajectoryId()

Optional. The runtime trajectory id of the rated agent task turn, as set on TaskServerEvent.trajectory_id. Shared by all steps of the turn.

string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

getAnswerQueryToken()

public String getAnswerQueryToken()

Optional. The token which could be used to fetch the answer log.

string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The answerQueryToken.

getAnswerQueryTokenBytes()

public ByteString getAnswerQueryTokenBytes()

Optional. The token which could be used to fetch the answer log.

string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for answerQueryToken.

getAssistToken()

public String getAssistToken()

Optional. The token which could be used to fetch the assistant log.

string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The assistToken.

getAssistTokenBytes()

public ByteString getAssistTokenBytes()

Optional. The token which could be used to fetch the assistant log.

string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for assistToken.

getDefaultInstanceForType()

public Feedback.ConversationInfo getDefaultInstanceForType()
Returns
Type Description
Feedback.ConversationInfo

getDescriptorForType()

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

getQuery()

public Query getQuery()

Required. The user's search query.

.google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Query

The query.

getQueryBuilder()

public Query.Builder getQueryBuilder()

Required. The user's search query.

.google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Query.Builder

getQueryOrBuilder()

public QueryOrBuilder getQueryOrBuilder()

Required. The user's search query.

.google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QueryOrBuilder

getQuestionIndex()

public int getQuestionIndex()

The index of the user input within the conversation messages.

int32 question_index = 1;

Returns
Type Description
int

The questionIndex.

getSession()

public String getSession()

Name of the newly generated or continued session.

string session = 2;

Returns
Type Description
String

The session.

getSessionBytes()

public ByteString getSessionBytes()

Name of the newly generated or continued session.

string session = 2;

Returns
Type Description
ByteString

The bytes for session.

getStepSeqNum()

public long getStepSeqNum()

Optional. The TaskServerEvent.seq_num of the step that opened the rated agent task reply.

int64 step_seq_num = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The stepSeqNum.

getTaskName()

public String getTaskName()

Optional. The full resource name of the Sobi task if the conversation was handled by a long-running agent task. Format (canonical, or the short alias the Task API also accepts): projects/{project}/locations/{location}/agents/{agent}/tasks/{task} projects/{project}/locations/{location}/tasks/{task}

string task_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The taskName.

getTaskNameBytes()

public ByteString getTaskNameBytes()

Optional. The full resource name of the Sobi task if the conversation was handled by a long-running agent task. Format (canonical, or the short alias the Task API also accepts): projects/{project}/locations/{location}/agents/{agent}/tasks/{task} projects/{project}/locations/{location}/tasks/{task}

string task_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for taskName.

getTrajectoryId()

public String getTrajectoryId()

Optional. The runtime trajectory id of the rated agent task turn, as set on TaskServerEvent.trajectory_id. Shared by all steps of the turn.

string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The trajectoryId.

getTrajectoryIdBytes()

public ByteString getTrajectoryIdBytes()

Optional. The runtime trajectory id of the rated agent task turn, as set on TaskServerEvent.trajectory_id. Shared by all steps of the turn.

string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for trajectoryId.

hasQuery()

public boolean hasQuery()

Required. The user's search query.

.google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the query field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Feedback.ConversationInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQuery(Query value)

public Feedback.ConversationInfo.Builder mergeQuery(Query value)

Required. The user's search query.

.google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Query
Returns
Type Description
Feedback.ConversationInfo.Builder

setAnswerQueryToken(String value)

public Feedback.ConversationInfo.Builder setAnswerQueryToken(String value)

Optional. The token which could be used to fetch the answer log.

string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The answerQueryToken to set.

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

setAnswerQueryTokenBytes(ByteString value)

public Feedback.ConversationInfo.Builder setAnswerQueryTokenBytes(ByteString value)

Optional. The token which could be used to fetch the answer log.

string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for answerQueryToken to set.

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

setAssistToken(String value)

public Feedback.ConversationInfo.Builder setAssistToken(String value)

Optional. The token which could be used to fetch the assistant log.

string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The assistToken to set.

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

setAssistTokenBytes(ByteString value)

public Feedback.ConversationInfo.Builder setAssistTokenBytes(ByteString value)

Optional. The token which could be used to fetch the assistant log.

string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for assistToken to set.

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

setQuery(Query value)

public Feedback.ConversationInfo.Builder setQuery(Query value)

Required. The user's search query.

.google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Query
Returns
Type Description
Feedback.ConversationInfo.Builder

setQuery(Query.Builder builderForValue)

public Feedback.ConversationInfo.Builder setQuery(Query.Builder builderForValue)

Required. The user's search query.

.google.cloud.discoveryengine.v1.Query query = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Query.Builder
Returns
Type Description
Feedback.ConversationInfo.Builder

setQuestionIndex(int value)

public Feedback.ConversationInfo.Builder setQuestionIndex(int value)

The index of the user input within the conversation messages.

int32 question_index = 1;

Parameter
Name Description
value int

The questionIndex to set.

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

setSession(String value)

public Feedback.ConversationInfo.Builder setSession(String value)

Name of the newly generated or continued session.

string session = 2;

Parameter
Name Description
value String

The session to set.

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

setSessionBytes(ByteString value)

public Feedback.ConversationInfo.Builder setSessionBytes(ByteString value)

Name of the newly generated or continued session.

string session = 2;

Parameter
Name Description
value ByteString

The bytes for session to set.

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

setStepSeqNum(long value)

public Feedback.ConversationInfo.Builder setStepSeqNum(long value)

Optional. The TaskServerEvent.seq_num of the step that opened the rated agent task reply.

int64 step_seq_num = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The stepSeqNum to set.

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

setTaskName(String value)

public Feedback.ConversationInfo.Builder setTaskName(String value)

Optional. The full resource name of the Sobi task if the conversation was handled by a long-running agent task. Format (canonical, or the short alias the Task API also accepts): projects/{project}/locations/{location}/agents/{agent}/tasks/{task} projects/{project}/locations/{location}/tasks/{task}

string task_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The taskName to set.

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

setTaskNameBytes(ByteString value)

public Feedback.ConversationInfo.Builder setTaskNameBytes(ByteString value)

Optional. The full resource name of the Sobi task if the conversation was handled by a long-running agent task. Format (canonical, or the short alias the Task API also accepts): projects/{project}/locations/{location}/agents/{agent}/tasks/{task} projects/{project}/locations/{location}/tasks/{task}

string task_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for taskName to set.

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

setTrajectoryId(String value)

public Feedback.ConversationInfo.Builder setTrajectoryId(String value)

Optional. The runtime trajectory id of the rated agent task turn, as set on TaskServerEvent.trajectory_id. Shared by all steps of the turn.

string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The trajectoryId to set.

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.

setTrajectoryIdBytes(ByteString value)

public Feedback.ConversationInfo.Builder setTrajectoryIdBytes(ByteString value)

Optional. The runtime trajectory id of the rated agent task turn, as set on TaskServerEvent.trajectory_id. Shared by all steps of the turn.

string trajectory_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for trajectoryId to set.

Returns
Type Description
Feedback.ConversationInfo.Builder

This builder for chaining.