Class SubmitAnswerFeedbackRequest.Builder (0.53.0)

public static final class SubmitAnswerFeedbackRequest.Builder extends GeneratedMessageV3.Builder<SubmitAnswerFeedbackRequest.Builder> implements SubmitAnswerFeedbackRequestOrBuilder

The request to set the feedback for a bot answer.

Protobuf type google.cloud.dialogflow.cx.v3.SubmitAnswerFeedbackRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SubmitAnswerFeedbackRequest build()
Returns
Type Description
SubmitAnswerFeedbackRequest

buildPartial()

public SubmitAnswerFeedbackRequest buildPartial()
Returns
Type Description
SubmitAnswerFeedbackRequest

clear()

public SubmitAnswerFeedbackRequest.Builder clear()
Returns
Type Description
SubmitAnswerFeedbackRequest.Builder
Overrides

clearAnswerFeedback()

public SubmitAnswerFeedbackRequest.Builder clearAnswerFeedback()

Required. Feedback provided for a bot answer.

.google.cloud.dialogflow.cx.v3.AnswerFeedback answer_feedback = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubmitAnswerFeedbackRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SubmitAnswerFeedbackRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SubmitAnswerFeedbackRequest.Builder
Overrides

clearResponseId()

public SubmitAnswerFeedbackRequest.Builder clearResponseId()

Required. ID of the response to update its feedback. This is the same as DetectIntentResponse.response_id.

string response_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubmitAnswerFeedbackRequest.Builder

This builder for chaining.

clearSession()

public SubmitAnswerFeedbackRequest.Builder clearSession()

Required. The name of the session the feedback was sent to.

string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
SubmitAnswerFeedbackRequest.Builder

This builder for chaining.

clearUpdateMask()

public SubmitAnswerFeedbackRequest.Builder clearUpdateMask()

Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubmitAnswerFeedbackRequest.Builder

clone()

public SubmitAnswerFeedbackRequest.Builder clone()
Returns
Type Description
SubmitAnswerFeedbackRequest.Builder
Overrides

getAnswerFeedback()

public AnswerFeedback getAnswerFeedback()

Required. Feedback provided for a bot answer.

.google.cloud.dialogflow.cx.v3.AnswerFeedback answer_feedback = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AnswerFeedback

The answerFeedback.

getAnswerFeedbackBuilder()

public AnswerFeedback.Builder getAnswerFeedbackBuilder()

Required. Feedback provided for a bot answer.

.google.cloud.dialogflow.cx.v3.AnswerFeedback answer_feedback = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AnswerFeedback.Builder

getAnswerFeedbackOrBuilder()

public AnswerFeedbackOrBuilder getAnswerFeedbackOrBuilder()

Required. Feedback provided for a bot answer.

.google.cloud.dialogflow.cx.v3.AnswerFeedback answer_feedback = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AnswerFeedbackOrBuilder

getDefaultInstanceForType()

public SubmitAnswerFeedbackRequest getDefaultInstanceForType()
Returns
Type Description
SubmitAnswerFeedbackRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getResponseId()

public String getResponseId()

Required. ID of the response to update its feedback. This is the same as DetectIntentResponse.response_id.

string response_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The responseId.

getResponseIdBytes()

public ByteString getResponseIdBytes()

Required. ID of the response to update its feedback. This is the same as DetectIntentResponse.response_id.

string response_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for responseId.

getSession()

public String getSession()

Required. The name of the session the feedback was sent to.

string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The session.

getSessionBytes()

public ByteString getSessionBytes()

Required. The name of the session the feedback was sent to.

string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for session.

getUpdateMask()

public FieldMask getUpdateMask()

Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMaskOrBuilder

hasAnswerFeedback()

public boolean hasAnswerFeedback()

Required. Feedback provided for a bot answer.

.google.cloud.dialogflow.cx.v3.AnswerFeedback answer_feedback = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the answerFeedback field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnswerFeedback(AnswerFeedback value)

public SubmitAnswerFeedbackRequest.Builder mergeAnswerFeedback(AnswerFeedback value)

Required. Feedback provided for a bot answer.

.google.cloud.dialogflow.cx.v3.AnswerFeedback answer_feedback = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AnswerFeedback
Returns
Type Description
SubmitAnswerFeedbackRequest.Builder

mergeFrom(SubmitAnswerFeedbackRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SubmitAnswerFeedbackRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SubmitAnswerFeedbackRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SubmitAnswerFeedbackRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SubmitAnswerFeedbackRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public SubmitAnswerFeedbackRequest.Builder mergeUpdateMask(FieldMask value)

Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
SubmitAnswerFeedbackRequest.Builder

setAnswerFeedback(AnswerFeedback value)

public SubmitAnswerFeedbackRequest.Builder setAnswerFeedback(AnswerFeedback value)

Required. Feedback provided for a bot answer.

.google.cloud.dialogflow.cx.v3.AnswerFeedback answer_feedback = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AnswerFeedback
Returns
Type Description
SubmitAnswerFeedbackRequest.Builder

setAnswerFeedback(AnswerFeedback.Builder builderForValue)

public SubmitAnswerFeedbackRequest.Builder setAnswerFeedback(AnswerFeedback.Builder builderForValue)

Required. Feedback provided for a bot answer.

.google.cloud.dialogflow.cx.v3.AnswerFeedback answer_feedback = 3 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResponseId(String value)

public SubmitAnswerFeedbackRequest.Builder setResponseId(String value)

Required. ID of the response to update its feedback. This is the same as DetectIntentResponse.response_id.

string response_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The responseId to set.

Returns
Type Description
SubmitAnswerFeedbackRequest.Builder

This builder for chaining.

setResponseIdBytes(ByteString value)

public SubmitAnswerFeedbackRequest.Builder setResponseIdBytes(ByteString value)

Required. ID of the response to update its feedback. This is the same as DetectIntentResponse.response_id.

string response_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for responseId to set.

Returns
Type Description
SubmitAnswerFeedbackRequest.Builder

This builder for chaining.

setSession(String value)

public SubmitAnswerFeedbackRequest.Builder setSession(String value)

Required. The name of the session the feedback was sent to.

string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The session to set.

Returns
Type Description
SubmitAnswerFeedbackRequest.Builder

This builder for chaining.

setSessionBytes(ByteString value)

public SubmitAnswerFeedbackRequest.Builder setSessionBytes(ByteString value)

Required. The name of the session the feedback was sent to.

string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for session to set.

Returns
Type Description
SubmitAnswerFeedbackRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public SubmitAnswerFeedbackRequest.Builder setUpdateMask(FieldMask value)

Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
SubmitAnswerFeedbackRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public SubmitAnswerFeedbackRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SubmitAnswerFeedbackRequest.Builder