public static final class Feedback.Builder extends GeneratedMessage.Builder<Feedback.Builder> implements FeedbackOrBuilderInformation about the user feedback. This information will be used for logging and metrics purpose.
Protobuf type google.cloud.discoveryengine.v1beta.Feedback
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Feedback.BuilderImplements
FeedbackOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllReasons(Iterable<? extends Feedback.Reason> values)
public Feedback.Builder addAllReasons(Iterable<? extends Feedback.Reason> values)Optional. The reason if user gives a thumb down.
repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1beta.Feedback.Reason>The reasons to add. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
addAllReasonsValue(Iterable<Integer> values)
public Feedback.Builder addAllReasonsValue(Iterable<Integer> values)Optional. The reason if user gives a thumb down.
repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<Integer>The enum numeric values on the wire for reasons to add. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
addReasons(Feedback.Reason value)
public Feedback.Builder addReasons(Feedback.Reason value)Optional. The reason if user gives a thumb down.
repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Feedback.ReasonThe reasons to add. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
addReasonsValue(int value)
public Feedback.Builder addReasonsValue(int value)Optional. The reason if user gives a thumb down.
repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for reasons to add. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
build()
public Feedback build()| Returns | |
|---|---|
| Type | Description |
Feedback |
|
buildPartial()
public Feedback buildPartial()| Returns | |
|---|---|
| Type | Description |
Feedback |
|
clear()
public Feedback.Builder clear()| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
|
clearComment()
public Feedback.Builder clearComment()Optional. The additional user comment of the feedback if user gives a thumb down.
string comment = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
clearComponentVersion()
public Feedback.Builder clearComponentVersion()Optional. The version of the component that this report is being sent from.
string component_version = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
clearConversationInfo()
public Feedback.Builder clearConversationInfo()The related conversation information when user gives feedback.
.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4;
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
|
clearDataTermsAccepted()
public Feedback.Builder clearDataTermsAccepted()Optional. Whether the customer accepted data use terms.
bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
clearFeedbackSource()
public Feedback.Builder clearFeedbackSource()Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
clearFeedbackType()
public Feedback.Builder clearFeedbackType()Required. Indicate whether the user gives a positive or negative feedback. If the user gives a negative feedback, there might be more feedback details.
.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
clearLlmModelVersion()
public Feedback.Builder clearLlmModelVersion()The version of the LLM model that was used to generate the response.
string llm_model_version = 5;
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
clearReasons()
public Feedback.Builder clearReasons()Optional. The reason if user gives a thumb down.
repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
getComment()
public String getComment()Optional. The additional user comment of the feedback if user gives a thumb down.
string comment = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The comment. |
getCommentBytes()
public ByteString getCommentBytes()Optional. The additional user comment of the feedback if user gives a thumb down.
string comment = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for comment. |
getComponentVersion()
public String getComponentVersion()Optional. The version of the component that this report is being sent from.
string component_version = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The componentVersion. |
getComponentVersionBytes()
public ByteString getComponentVersionBytes()Optional. The version of the component that this report is being sent from.
string component_version = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for componentVersion. |
getConversationInfo()
public Feedback.ConversationInfo getConversationInfo()The related conversation information when user gives feedback.
.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4;
| Returns | |
|---|---|
| Type | Description |
Feedback.ConversationInfo |
The conversationInfo. |
getConversationInfoBuilder()
public Feedback.ConversationInfo.Builder getConversationInfoBuilder()The related conversation information when user gives feedback.
.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4;
| Returns | |
|---|---|
| Type | Description |
Feedback.ConversationInfo.Builder |
|
getConversationInfoOrBuilder()
public Feedback.ConversationInfoOrBuilder getConversationInfoOrBuilder()The related conversation information when user gives feedback.
.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4;
| Returns | |
|---|---|
| Type | Description |
Feedback.ConversationInfoOrBuilder |
|
getDataTermsAccepted()
public boolean getDataTermsAccepted()Optional. Whether the customer accepted data use terms.
bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The dataTermsAccepted. |
getDefaultInstanceForType()
public Feedback getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Feedback |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFeedbackSource()
public Feedback.FeedbackSource getFeedbackSource()Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Feedback.FeedbackSource |
The feedbackSource. |
getFeedbackSourceValue()
public int getFeedbackSourceValue()Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for feedbackSource. |
getFeedbackType()
public Feedback.FeedbackType getFeedbackType()Required. Indicate whether the user gives a positive or negative feedback. If the user gives a negative feedback, there might be more feedback details.
.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Feedback.FeedbackType |
The feedbackType. |
getFeedbackTypeValue()
public int getFeedbackTypeValue()Required. Indicate whether the user gives a positive or negative feedback. If the user gives a negative feedback, there might be more feedback details.
.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for feedbackType. |
getLlmModelVersion()
public String getLlmModelVersion()The version of the LLM model that was used to generate the response.
string llm_model_version = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The llmModelVersion. |
getLlmModelVersionBytes()
public ByteString getLlmModelVersionBytes()The version of the LLM model that was used to generate the response.
string llm_model_version = 5;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for llmModelVersion. |
getReasons(int index)
public Feedback.Reason getReasons(int index)Optional. The reason if user gives a thumb down.
repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Reason |
The reasons at the given index. |
getReasonsCount()
public int getReasonsCount()Optional. The reason if user gives a thumb down.
repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of reasons. |
getReasonsList()
public List<Feedback.Reason> getReasonsList()Optional. The reason if user gives a thumb down.
repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Reason> |
A list containing the reasons. |
getReasonsValue(int index)
public int getReasonsValue(int index)Optional. The reason if user gives a thumb down.
repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of reasons at the given index. |
getReasonsValueList()
public List<Integer> getReasonsValueList()Optional. The reason if user gives a thumb down.
repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for reasons. |
hasConversationInfo()
public boolean hasConversationInfo()The related conversation information when user gives feedback.
.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the conversationInfo field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeConversationInfo(Feedback.ConversationInfo value)
public Feedback.Builder mergeConversationInfo(Feedback.ConversationInfo value)The related conversation information when user gives feedback.
.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Feedback.ConversationInfo |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
|
mergeFrom(Feedback other)
public Feedback.Builder mergeFrom(Feedback other)| Parameter | |
|---|---|
| Name | Description |
other |
Feedback |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Feedback.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Feedback.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
|
setComment(String value)
public Feedback.Builder setComment(String value)Optional. The additional user comment of the feedback if user gives a thumb down.
string comment = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe comment to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
setCommentBytes(ByteString value)
public Feedback.Builder setCommentBytes(ByteString value)Optional. The additional user comment of the feedback if user gives a thumb down.
string comment = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for comment to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
setComponentVersion(String value)
public Feedback.Builder setComponentVersion(String value)Optional. The version of the component that this report is being sent from.
string component_version = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe componentVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
setComponentVersionBytes(ByteString value)
public Feedback.Builder setComponentVersionBytes(ByteString value)Optional. The version of the component that this report is being sent from.
string component_version = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for componentVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
setConversationInfo(Feedback.ConversationInfo value)
public Feedback.Builder setConversationInfo(Feedback.ConversationInfo value)The related conversation information when user gives feedback.
.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Feedback.ConversationInfo |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
|
setConversationInfo(Feedback.ConversationInfo.Builder builderForValue)
public Feedback.Builder setConversationInfo(Feedback.ConversationInfo.Builder builderForValue)The related conversation information when user gives feedback.
.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Feedback.ConversationInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
|
setDataTermsAccepted(boolean value)
public Feedback.Builder setDataTermsAccepted(boolean value)Optional. Whether the customer accepted data use terms.
bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe dataTermsAccepted to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
setFeedbackSource(Feedback.FeedbackSource value)
public Feedback.Builder setFeedbackSource(Feedback.FeedbackSource value)Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Feedback.FeedbackSourceThe feedbackSource to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
setFeedbackSourceValue(int value)
public Feedback.Builder setFeedbackSourceValue(int value)Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for feedbackSource to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
setFeedbackType(Feedback.FeedbackType value)
public Feedback.Builder setFeedbackType(Feedback.FeedbackType value)Required. Indicate whether the user gives a positive or negative feedback. If the user gives a negative feedback, there might be more feedback details.
.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Feedback.FeedbackTypeThe feedbackType to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
setFeedbackTypeValue(int value)
public Feedback.Builder setFeedbackTypeValue(int value)Required. Indicate whether the user gives a positive or negative feedback. If the user gives a negative feedback, there might be more feedback details.
.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for feedbackType to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
setLlmModelVersion(String value)
public Feedback.Builder setLlmModelVersion(String value)The version of the LLM model that was used to generate the response.
string llm_model_version = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe llmModelVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
setLlmModelVersionBytes(ByteString value)
public Feedback.Builder setLlmModelVersionBytes(ByteString value)The version of the LLM model that was used to generate the response.
string llm_model_version = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for llmModelVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
setReasons(int index, Feedback.Reason value)
public Feedback.Builder setReasons(int index, Feedback.Reason value)Optional. The reason if user gives a thumb down.
repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
Feedback.ReasonThe reasons to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |
setReasonsValue(int index, int value)
public Feedback.Builder setReasonsValue(int index, int value)Optional. The reason if user gives a thumb down.
repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for reasons to set. |
| Returns | |
|---|---|
| Type | Description |
Feedback.Builder |
This builder for chaining. |