public static final class Feedback.ConversationInfo.Builder extends GeneratedMessage.Builder<Feedback.ConversationInfo.Builder> implements Feedback.ConversationInfoOrBuilderThe conversation information such as the question index and session name.
Protobuf type google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Feedback.ConversationInfo.BuilderImplements
Feedback.ConversationInfoOrBuilderStatic 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 |
|
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.v1beta.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. |
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 |
|
getQuery()
public Query getQuery()Required. The user's search query.
.google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.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. |
hasQuery()
public boolean hasQuery()Required. The user's search query.
.google.cloud.discoveryengine.v1beta.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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
mergeQuery(Query value)
public Feedback.ConversationInfo.Builder mergeQuery(Query value)Required. The user's search query.
.google.cloud.discoveryengine.v1beta.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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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.v1beta.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.v1beta.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 |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for session to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.ConversationInfo.Builder |
This builder for chaining. |