Class QaAnswer (2.54.0)

public final class QaAnswer extends GeneratedMessageV3 implements QaAnswerOrBuilder

An answer to a QaQuestion.

Protobuf type google.cloud.contactcenterinsights.v1.QaAnswer

Implements

QaAnswerOrBuilder

Static Fields

ANSWER_SOURCES_FIELD_NUMBER

public static final int ANSWER_SOURCES_FIELD_NUMBER
Field Value
Type Description
int

ANSWER_VALUE_FIELD_NUMBER

public static final int ANSWER_VALUE_FIELD_NUMBER
Field Value
Type Description
int

CONVERSATION_FIELD_NUMBER

public static final int CONVERSATION_FIELD_NUMBER
Field Value
Type Description
int

QA_QUESTION_FIELD_NUMBER

public static final int QA_QUESTION_FIELD_NUMBER
Field Value
Type Description
int

QUESTION_BODY_FIELD_NUMBER

public static final int QUESTION_BODY_FIELD_NUMBER
Field Value
Type Description
int

TAGS_FIELD_NUMBER

public static final int TAGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static QaAnswer getDefaultInstance()
Returns
Type Description
QaAnswer

getDescriptor()

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

newBuilder()

public static QaAnswer.Builder newBuilder()
Returns
Type Description
QaAnswer.Builder

newBuilder(QaAnswer prototype)

public static QaAnswer.Builder newBuilder(QaAnswer prototype)
Parameter
Name Description
prototype QaAnswer
Returns
Type Description
QaAnswer.Builder

parseDelimitedFrom(InputStream input)

public static QaAnswer parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QaAnswer
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QaAnswer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QaAnswer
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static QaAnswer parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
QaAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QaAnswer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QaAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QaAnswer parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
QaAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QaAnswer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QaAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QaAnswer parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
QaAnswer
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QaAnswer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QaAnswer
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static QaAnswer parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QaAnswer
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QaAnswer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QaAnswer
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static QaAnswer parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
QaAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QaAnswer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QaAnswer
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<QaAnswer> parser()
Returns
Type Description
Parser<QaAnswer>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAnswerSources(int index)

public QaAnswer.AnswerSource getAnswerSources(int index)

List of all individual answers given to the question.

repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;

Parameter
Name Description
index int
Returns
Type Description
QaAnswer.AnswerSource

getAnswerSourcesCount()

public int getAnswerSourcesCount()

List of all individual answers given to the question.

repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;

Returns
Type Description
int

getAnswerSourcesList()

public List<QaAnswer.AnswerSource> getAnswerSourcesList()

List of all individual answers given to the question.

repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;

Returns
Type Description
List<AnswerSource>

getAnswerSourcesOrBuilder(int index)

public QaAnswer.AnswerSourceOrBuilder getAnswerSourcesOrBuilder(int index)

List of all individual answers given to the question.

repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;

Parameter
Name Description
index int
Returns
Type Description
QaAnswer.AnswerSourceOrBuilder

getAnswerSourcesOrBuilderList()

public List<? extends QaAnswer.AnswerSourceOrBuilder> getAnswerSourcesOrBuilderList()

List of all individual answers given to the question.

repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;

Returns
Type Description
List<? extends com.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSourceOrBuilder>

getAnswerValue()

public QaAnswer.AnswerValue getAnswerValue()

The main answer value, incorporating any manual edits if they exist.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;

Returns
Type Description
QaAnswer.AnswerValue

The answerValue.

getAnswerValueOrBuilder()

public QaAnswer.AnswerValueOrBuilder getAnswerValueOrBuilder()

The main answer value, incorporating any manual edits if they exist.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;

Returns
Type Description
QaAnswer.AnswerValueOrBuilder

getConversation()

public String getConversation()

The conversation the answer applies to.

string conversation = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The conversation.

getConversationBytes()

public ByteString getConversationBytes()

The conversation the answer applies to.

string conversation = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for conversation.

getDefaultInstanceForType()

public QaAnswer getDefaultInstanceForType()
Returns
Type Description
QaAnswer

getParserForType()

public Parser<QaAnswer> getParserForType()
Returns
Type Description
Parser<QaAnswer>
Overrides

getQaQuestion()

public String getQaQuestion()

The QaQuestion answered by this answer.

string qa_question = 7 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The qaQuestion.

getQaQuestionBytes()

public ByteString getQaQuestionBytes()

The QaQuestion answered by this answer.

string qa_question = 7 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for qaQuestion.

getQuestionBody()

public String getQuestionBody()

Question text. E.g., "Did the agent greet the customer?"

string question_body = 6;

Returns
Type Description
String

The questionBody.

getQuestionBodyBytes()

public ByteString getQuestionBodyBytes()

Question text. E.g., "Did the agent greet the customer?"

string question_body = 6;

Returns
Type Description
ByteString

The bytes for questionBody.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTags(int index)

public String getTags(int index)

User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.

repeated string tags = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The tags at the given index.

getTagsBytes(int index)

public ByteString getTagsBytes(int index)

User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.

repeated string tags = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the tags at the given index.

getTagsCount()

public int getTagsCount()

User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.

repeated string tags = 5;

Returns
Type Description
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.

repeated string tags = 5;

Returns
Type Description
ProtocolStringList

A list containing the tags.

hasAnswerValue()

public boolean hasAnswerValue()

The main answer value, incorporating any manual edits if they exist.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;

Returns
Type Description
boolean

Whether the answerValue field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public QaAnswer.Builder newBuilderForType()
Returns
Type Description
QaAnswer.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QaAnswer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
QaAnswer.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public QaAnswer.Builder toBuilder()
Returns
Type Description
QaAnswer.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException