Class SubmitAnswerFeedbackRequest (0.52.0)

public final class SubmitAnswerFeedbackRequest extends GeneratedMessageV3 implements SubmitAnswerFeedbackRequestOrBuilder

The request to set the feedback for a bot answer.

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

Static Fields

ANSWER_FEEDBACK_FIELD_NUMBER

public static final int ANSWER_FEEDBACK_FIELD_NUMBER
Field Value
TypeDescription
int

RESPONSE_ID_FIELD_NUMBER

public static final int RESPONSE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

SESSION_FIELD_NUMBER

public static final int SESSION_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SubmitAnswerFeedbackRequest getDefaultInstance()
Returns
TypeDescription
SubmitAnswerFeedbackRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SubmitAnswerFeedbackRequest.Builder newBuilder()
Returns
TypeDescription
SubmitAnswerFeedbackRequest.Builder

newBuilder(SubmitAnswerFeedbackRequest prototype)

public static SubmitAnswerFeedbackRequest.Builder newBuilder(SubmitAnswerFeedbackRequest prototype)
Parameter
NameDescription
prototypeSubmitAnswerFeedbackRequest
Returns
TypeDescription
SubmitAnswerFeedbackRequest.Builder

parseDelimitedFrom(InputStream input)

public static SubmitAnswerFeedbackRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SubmitAnswerFeedbackRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubmitAnswerFeedbackRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubmitAnswerFeedbackRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SubmitAnswerFeedbackRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SubmitAnswerFeedbackRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SubmitAnswerFeedbackRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubmitAnswerFeedbackRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SubmitAnswerFeedbackRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SubmitAnswerFeedbackRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SubmitAnswerFeedbackRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubmitAnswerFeedbackRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SubmitAnswerFeedbackRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SubmitAnswerFeedbackRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SubmitAnswerFeedbackRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubmitAnswerFeedbackRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SubmitAnswerFeedbackRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SubmitAnswerFeedbackRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubmitAnswerFeedbackRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubmitAnswerFeedbackRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SubmitAnswerFeedbackRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SubmitAnswerFeedbackRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SubmitAnswerFeedbackRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubmitAnswerFeedbackRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SubmitAnswerFeedbackRequest> parser()
Returns
TypeDescription
Parser<SubmitAnswerFeedbackRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAnswerFeedback()

public AnswerFeedback getAnswerFeedback()

Required. Feedback provided for a bot answer.

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

Returns
TypeDescription
AnswerFeedback

The answerFeedback.

getAnswerFeedbackOrBuilder()

public AnswerFeedbackOrBuilder getAnswerFeedbackOrBuilder()

Required. Feedback provided for a bot answer.

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

Returns
TypeDescription
AnswerFeedbackOrBuilder

getDefaultInstanceForType()

public SubmitAnswerFeedbackRequest getDefaultInstanceForType()
Returns
TypeDescription
SubmitAnswerFeedbackRequest

getParserForType()

public Parser<SubmitAnswerFeedbackRequest> getParserForType()
Returns
TypeDescription
Parser<SubmitAnswerFeedbackRequest>
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
TypeDescription
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
TypeDescription
ByteString

The bytes for responseId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
FieldMask

The updateMask.

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
TypeDescription
FieldMaskOrBuilder

hasAnswerFeedback()

public boolean hasAnswerFeedback()

Required. Feedback provided for a bot answer.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SubmitAnswerFeedbackRequest.Builder newBuilderForType()
Returns
TypeDescription
SubmitAnswerFeedbackRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SubmitAnswerFeedbackRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SubmitAnswerFeedbackRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SubmitAnswerFeedbackRequest.Builder toBuilder()
Returns
TypeDescription
SubmitAnswerFeedbackRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException