public final class Feedback extends GeneratedMessage implements FeedbackOrBuilder
Information about the user feedback. This information will be used for
logging and metrics purpose.
Protobuf type google.cloud.discoveryengine.v1beta.Feedback
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int COMMENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
COMPONENT_VERSION_FIELD_NUMBER
public static final int COMPONENT_VERSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CONVERSATION_INFO_FIELD_NUMBER
public static final int CONVERSATION_INFO_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DATA_TERMS_ACCEPTED_FIELD_NUMBER
public static final int DATA_TERMS_ACCEPTED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
FEEDBACK_SOURCE_FIELD_NUMBER
public static final int FEEDBACK_SOURCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
FEEDBACK_TYPE_FIELD_NUMBER
public static final int FEEDBACK_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
LLM_MODEL_VERSION_FIELD_NUMBER
public static final int LLM_MODEL_VERSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
REASONS_FIELD_NUMBER
public static final int REASONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Feedback getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Feedback.Builder newBuilder()
newBuilder(Feedback prototype)
public static Feedback.Builder newBuilder(Feedback prototype)
| Parameter |
| Name |
Description |
prototype |
Feedback
|
public static Feedback parseDelimitedFrom(InputStream input)
public static Feedback parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Feedback parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Feedback parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Feedback parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Feedback parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Feedback parseFrom(CodedInputStream input)
public static Feedback parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Feedback parseFrom(InputStream input)
public static Feedback parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Feedback parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Feedback parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Feedback> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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.
|
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;
getConversationInfoOrBuilder()
public Feedback.ConversationInfoOrBuilder getConversationInfoOrBuilder()
The related conversation information when user gives feedback.
.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4;
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()
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];
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];
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.
|
getParserForType()
public Parser<Feedback> getParserForType()
Overrides
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 |
int
The index of the element to return.
|
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 |
int
The 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.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Feedback.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Feedback.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Feedback.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides