Class AnswerFeedback.RatingReason.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.RatingReason.Builder>
com.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason.Builder
- All Implemented Interfaces:
AnswerFeedback.RatingReasonOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnswerFeedback.RatingReason
public static final class AnswerFeedback.RatingReason.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.RatingReason.Builder>
implements AnswerFeedback.RatingReasonOrBuilder
Stores extra information about why users provided thumbs down rating.Protobuf type
google.cloud.dialogflow.cx.v3beta1.AnswerFeedback.RatingReason-
Method Summary
Modifier and TypeMethodDescriptionaddAllReasonLabels(Iterable<String> values) Optional.addReasonLabels(String value) Optional.addReasonLabelsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.getReasonLabels(int index) Optional.com.google.protobuf.ByteStringgetReasonLabelsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setFeedback(String value) Optional.setFeedbackBytes(com.google.protobuf.ByteString value) Optional.setReasonLabels(int index, String 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.RatingReason.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.RatingReason.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.RatingReason.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.RatingReason.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnswerFeedback.RatingReason.Builder>
-
mergeFrom
public AnswerFeedback.RatingReason.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.RatingReason.Builder>- Throws:
IOException
-
getReasonLabelsList
public com.google.protobuf.ProtocolStringList getReasonLabelsList()Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.
repeated string reason_labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReasonLabelsListin interfaceAnswerFeedback.RatingReasonOrBuilder- Returns:
- A list containing the reasonLabels.
-
getReasonLabelsCount
public int getReasonLabelsCount()Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.
repeated string reason_labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReasonLabelsCountin interfaceAnswerFeedback.RatingReasonOrBuilder- Returns:
- The count of reasonLabels.
-
getReasonLabels
Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.
repeated string reason_labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReasonLabelsin interfaceAnswerFeedback.RatingReasonOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The reasonLabels at the given index.
-
getReasonLabelsBytes
public com.google.protobuf.ByteString getReasonLabelsBytes(int index) Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.
repeated string reason_labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReasonLabelsBytesin interfaceAnswerFeedback.RatingReasonOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the reasonLabels at the given index.
-
setReasonLabels
Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.
repeated string reason_labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The reasonLabels to set.- Returns:
- This builder for chaining.
-
addReasonLabels
Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.
repeated string reason_labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The reasonLabels to add.- Returns:
- This builder for chaining.
-
addAllReasonLabels
Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.
repeated string reason_labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The reasonLabels to add.- Returns:
- This builder for chaining.
-
clearReasonLabels
Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.
repeated string reason_labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addReasonLabelsBytes
public AnswerFeedback.RatingReason.Builder addReasonLabelsBytes(com.google.protobuf.ByteString value) Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.
repeated string reason_labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the reasonLabels to add.- Returns:
- This builder for chaining.
-
getFeedback
Optional. Additional feedback about the rating. This field can be populated without choosing a predefined `reason`.
string feedback = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFeedbackin interfaceAnswerFeedback.RatingReasonOrBuilder- Returns:
- The feedback.
-
getFeedbackBytes
public com.google.protobuf.ByteString getFeedbackBytes()Optional. Additional feedback about the rating. This field can be populated without choosing a predefined `reason`.
string feedback = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFeedbackBytesin interfaceAnswerFeedback.RatingReasonOrBuilder- Returns:
- The bytes for feedback.
-
setFeedback
Optional. Additional feedback about the rating. This field can be populated without choosing a predefined `reason`.
string feedback = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The feedback to set.- Returns:
- This builder for chaining.
-
clearFeedback
Optional. Additional feedback about the rating. This field can be populated without choosing a predefined `reason`.
string feedback = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setFeedbackBytes
Optional. Additional feedback about the rating. This field can be populated without choosing a predefined `reason`.
string feedback = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for feedback to set.- Returns:
- This builder for chaining.
-