Class AnswerFeedback.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.Builder>
com.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.Builder
- All Implemented Interfaces:
AnswerFeedbackOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnswerFeedback
public static final class AnswerFeedback.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.Builder>
implements AnswerFeedbackOrBuilder
Stores information about feedback provided by users about a response.Protobuf type
google.cloud.dialogflow.cx.v3beta1.AnswerFeedback-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Optional.intOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AnswerFeedback other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setCustomRating(String value) Optional.setCustomRatingBytes(com.google.protobuf.ByteString value) Optional.setRating(AnswerFeedback.Rating value) Optional.Optional.setRatingReason(AnswerFeedback.RatingReason.Builder builderForValue) Optional.setRatingValue(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnswerFeedback.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.Builder>
-
mergeFrom
public AnswerFeedback.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnswerFeedback.Builder>- Throws:
IOException
-
getRatingValue
public int getRatingValue()Optional. Rating from user for the specific Dialogflow response.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRatingValuein interfaceAnswerFeedbackOrBuilder- Returns:
- The enum numeric value on the wire for rating.
-
setRatingValue
Optional. Rating from user for the specific Dialogflow response.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for rating to set.- Returns:
- This builder for chaining.
-
getRating
Optional. Rating from user for the specific Dialogflow response.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRatingin interfaceAnswerFeedbackOrBuilder- Returns:
- The rating.
-
setRating
Optional. Rating from user for the specific Dialogflow response.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The rating to set.- Returns:
- This builder for chaining.
-
clearRating
Optional. Rating from user for the specific Dialogflow response.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.Rating rating = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasRatingReason
public boolean hasRatingReason()Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRatingReasonin interfaceAnswerFeedbackOrBuilder- Returns:
- Whether the ratingReason field is set.
-
getRatingReason
Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRatingReasonin interfaceAnswerFeedbackOrBuilder- Returns:
- The ratingReason.
-
setRatingReason
Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setRatingReason
Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRatingReason
Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearRatingReason
Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getRatingReasonBuilder
Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getRatingReasonOrBuilder
Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason rating_reason = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRatingReasonOrBuilderin interfaceAnswerFeedbackOrBuilder
-
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];- Specified by:
getCustomRatingin interfaceAnswerFeedbackOrBuilder- Returns:
- The customRating.
-
getCustomRatingBytes
public com.google.protobuf.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];- Specified by:
getCustomRatingBytesin interfaceAnswerFeedbackOrBuilder- Returns:
- The bytes for customRating.
-
setCustomRating
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];- Parameters:
value- The customRating to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setCustomRatingBytes
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];- Parameters:
value- The bytes for customRating to set.- Returns:
- This builder for chaining.
-