public static final class AnswerFeedback.Builder extends GeneratedMessageV3.Builder<AnswerFeedback.Builder> implements AnswerFeedbackOrBuilder
Stores information about feedback provided by users about a response.
Protobuf type google.cloud.dialogflow.cx.v3.AnswerFeedback
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnswerFeedback.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AnswerFeedback build()
buildPartial()
public AnswerFeedback buildPartial()
clear()
public AnswerFeedback.Builder clear()
Overrides
clearCustomRating()
public AnswerFeedback.Builder clearCustomRating()
Optional. Custom rating from the user about the provided answer, with
maximum length of 1024 characters. For example, client could use a
customized JSON object to indicate the rating.
string custom_rating = 3 [(.google.api.field_behavior) = OPTIONAL];
clearField(Descriptors.FieldDescriptor field)
public AnswerFeedback.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AnswerFeedback.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRating()
public AnswerFeedback.Builder clearRating()
Optional. Rating from user for the specific Dialogflow response.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];
clearRatingReason()
public AnswerFeedback.Builder clearRatingReason()
Optional. In case of thumbs down rating provided, users can optionally
provide context about the rating.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
clone()
public AnswerFeedback.Builder clone()
Overrides
getCustomRating()
public String getCustomRating()
Optional. Custom rating from the user about the provided answer, with
maximum length of 1024 characters. For example, client could use a
customized JSON object to indicate the rating.
string custom_rating = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The customRating.
|
getCustomRatingBytes()
public ByteString getCustomRatingBytes()
Optional. Custom rating from the user about the provided answer, with
maximum length of 1024 characters. For example, client could use a
customized JSON object to indicate the rating.
string custom_rating = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for customRating.
|
getDefaultInstanceForType()
public AnswerFeedback getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getRating()
public AnswerFeedback.Rating getRating()
Optional. Rating from user for the specific Dialogflow response.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];
getRatingReason()
public AnswerFeedback.RatingReason getRatingReason()
Optional. In case of thumbs down rating provided, users can optionally
provide context about the rating.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
getRatingReasonBuilder()
public AnswerFeedback.RatingReason.Builder getRatingReasonBuilder()
Optional. In case of thumbs down rating provided, users can optionally
provide context about the rating.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
getRatingReasonOrBuilder()
public AnswerFeedback.RatingReasonOrBuilder getRatingReasonOrBuilder()
Optional. In case of thumbs down rating provided, users can optionally
provide context about the rating.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
getRatingValue()
public int getRatingValue()
Optional. Rating from user for the specific Dialogflow response.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for rating.
|
hasRatingReason()
public boolean hasRatingReason()
Optional. In case of thumbs down rating provided, users can optionally
provide context about the rating.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the ratingReason field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AnswerFeedback other)
public AnswerFeedback.Builder mergeFrom(AnswerFeedback other)
public AnswerFeedback.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AnswerFeedback.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeRatingReason(AnswerFeedback.RatingReason value)
public AnswerFeedback.Builder mergeRatingReason(AnswerFeedback.RatingReason value)
Optional. In case of thumbs down rating provided, users can optionally
provide context about the rating.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnswerFeedback.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setCustomRating(String value)
public AnswerFeedback.Builder setCustomRating(String value)
Optional. Custom rating from the user about the provided answer, with
maximum length of 1024 characters. For example, client could use a
customized JSON object to indicate the rating.
string custom_rating = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
String
The customRating to set.
|
setCustomRatingBytes(ByteString value)
public AnswerFeedback.Builder setCustomRatingBytes(ByteString value)
Optional. Custom rating from the user about the provided answer, with
maximum length of 1024 characters. For example, client could use a
customized JSON object to indicate the rating.
string custom_rating = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
ByteString
The bytes for customRating to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AnswerFeedback.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRating(AnswerFeedback.Rating value)
public AnswerFeedback.Builder setRating(AnswerFeedback.Rating value)
Optional. Rating from user for the specific Dialogflow response.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];
setRatingReason(AnswerFeedback.RatingReason value)
public AnswerFeedback.Builder setRatingReason(AnswerFeedback.RatingReason value)
Optional. In case of thumbs down rating provided, users can optionally
provide context about the rating.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
setRatingReason(AnswerFeedback.RatingReason.Builder builderForValue)
public AnswerFeedback.Builder setRatingReason(AnswerFeedback.RatingReason.Builder builderForValue)
Optional. In case of thumbs down rating provided, users can optionally
provide context about the rating.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];
setRatingValue(int value)
public AnswerFeedback.Builder setRatingValue(int value)
Optional. Rating from user for the specific Dialogflow response.
.google.cloud.dialogflow.cx.v3.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for rating to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnswerFeedback.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AnswerFeedback.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides