Class AnswerFeedback.Builder (0.43.0)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnswerFeedback.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnswerFeedback.Builder
Overrides

build()

public AnswerFeedback build()
Returns
Type Description
AnswerFeedback

buildPartial()

public AnswerFeedback buildPartial()
Returns
Type Description
AnswerFeedback

clear()

public AnswerFeedback.Builder clear()
Returns
Type Description
AnswerFeedback.Builder
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];

Returns
Type Description
AnswerFeedback.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnswerFeedback.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnswerFeedback.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AnswerFeedback.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnswerFeedback.Builder
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];

Returns
Type Description
AnswerFeedback.Builder

This builder for chaining.

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];

Returns
Type Description
AnswerFeedback.Builder

clone()

public AnswerFeedback.Builder clone()
Returns
Type Description
AnswerFeedback.Builder
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()
Returns
Type Description
AnswerFeedback

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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];

Returns
Type Description
AnswerFeedback.Rating

The rating.

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];

Returns
Type Description
AnswerFeedback.RatingReason

The ratingReason.

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];

Returns
Type Description
AnswerFeedback.RatingReason.Builder

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];

Returns
Type Description
AnswerFeedback.RatingReasonOrBuilder

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnswerFeedback other)

public AnswerFeedback.Builder mergeFrom(AnswerFeedback other)
Parameter
Name Description
other AnswerFeedback
Returns
Type Description
AnswerFeedback.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnswerFeedback.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnswerFeedback.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnswerFeedback.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnswerFeedback.Builder
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];

Parameter
Name Description
value AnswerFeedback.RatingReason
Returns
Type Description
AnswerFeedback.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnswerFeedback.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerFeedback.Builder
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.

Returns
Type Description
AnswerFeedback.Builder

This builder for chaining.

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.

Returns
Type Description
AnswerFeedback.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AnswerFeedback.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnswerFeedback.Builder
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];

Parameter
Name Description
value AnswerFeedback.Rating

The rating to set.

Returns
Type Description
AnswerFeedback.Builder

This builder for chaining.

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];

Parameter
Name Description
value AnswerFeedback.RatingReason
Returns
Type Description
AnswerFeedback.Builder

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];

Parameter
Name Description
builderForValue AnswerFeedback.RatingReason.Builder
Returns
Type Description
AnswerFeedback.Builder

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.

Returns
Type Description
AnswerFeedback.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnswerFeedback.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnswerFeedback.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnswerFeedback.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerFeedback.Builder
Overrides