Class AnswerFeedback.Builder (0.52.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnswerFeedback.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnswerFeedback.Builder
Overrides

build()

public AnswerFeedback build()
Returns
TypeDescription
AnswerFeedback

buildPartial()

public AnswerFeedback buildPartial()
Returns
TypeDescription
AnswerFeedback

clear()

public AnswerFeedback.Builder clear()
Returns
TypeDescription
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
TypeDescription
AnswerFeedback.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnswerFeedback.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AnswerFeedback.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AnswerFeedback.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AnswerFeedback.Builder

clone()

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

The bytes for customRating.

getDefaultInstanceForType()

public AnswerFeedback getDefaultInstanceForType()
Returns
TypeDescription
AnswerFeedback

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the ratingReason field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AnswerFeedback other)

public AnswerFeedback.Builder mergeFrom(AnswerFeedback other)
Parameter
NameDescription
otherAnswerFeedback
Returns
TypeDescription
AnswerFeedback.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnswerFeedback.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnswerFeedback.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AnswerFeedback.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueAnswerFeedback.RatingReason
Returns
TypeDescription
AnswerFeedback.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnswerFeedback.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The customRating to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for customRating to set.

Returns
TypeDescription
AnswerFeedback.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AnswerFeedback.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueAnswerFeedback.Rating

The rating to set.

Returns
TypeDescription
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
NameDescription
valueAnswerFeedback.RatingReason
Returns
TypeDescription
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
NameDescription
builderForValueAnswerFeedback.RatingReason.Builder
Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for rating to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AnswerFeedback.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnswerFeedback.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnswerFeedback.Builder
Overrides