Class Feedback (0.90.0)

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

Implements

FeedbackOrBuilder

Static Fields

COMMENT_FIELD_NUMBER

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()
Returns
Type Description
Feedback

getDescriptor()

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

newBuilder()

public static Feedback.Builder newBuilder()
Returns
Type Description
Feedback.Builder

newBuilder(Feedback prototype)

public static Feedback.Builder newBuilder(Feedback prototype)
Parameter
Name Description
prototype Feedback
Returns
Type Description
Feedback.Builder

parseDelimitedFrom(InputStream input)

public static Feedback parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Feedback
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Feedback parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Feedback
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Feedback parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Feedback
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Feedback parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Feedback
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Feedback parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Feedback
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Feedback parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Feedback
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Feedback parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Feedback
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Feedback parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Feedback
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Feedback parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Feedback
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Feedback parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Feedback
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Feedback parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Feedback
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Feedback parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Feedback
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Feedback> parser()
Returns
Type Description
Parser<Feedback>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

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.

getParserForType()

public Parser<Feedback> getParserForType()
Returns
Type Description
Parser<Feedback>
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.

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 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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Feedback.Builder newBuilderForType()
Returns
Type Description
Feedback.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Feedback.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Feedback.Builder
Overrides

toBuilder()

public Feedback.Builder toBuilder()
Returns
Type Description
Feedback.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException