Class QaAnswer.Builder (2.55.0)

public static final class QaAnswer.Builder extends GeneratedMessageV3.Builder<QaAnswer.Builder> implements QaAnswerOrBuilder

An answer to a QaQuestion.

Protobuf type google.cloud.contactcenterinsights.v1.QaAnswer

Implements

QaAnswerOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAnswerSources(Iterable<? extends QaAnswer.AnswerSource> values)

public QaAnswer.Builder addAllAnswerSources(Iterable<? extends QaAnswer.AnswerSource> values)

List of all individual answers given to the question.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource>
Returns
Type Description
QaAnswer.Builder

addAllTags(Iterable<String> values)

public QaAnswer.Builder addAllTags(Iterable<String> values)

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
values Iterable<String>

The tags to add.

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

addAnswerSources(QaAnswer.AnswerSource value)

public QaAnswer.Builder addAnswerSources(QaAnswer.AnswerSource value)

List of all individual answers given to the question.

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

Parameter
Name Description
value QaAnswer.AnswerSource
Returns
Type Description
QaAnswer.Builder

addAnswerSources(QaAnswer.AnswerSource.Builder builderForValue)

public QaAnswer.Builder addAnswerSources(QaAnswer.AnswerSource.Builder builderForValue)

List of all individual answers given to the question.

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

Parameter
Name Description
builderForValue QaAnswer.AnswerSource.Builder
Returns
Type Description
QaAnswer.Builder

addAnswerSources(int index, QaAnswer.AnswerSource value)

public QaAnswer.Builder addAnswerSources(int index, QaAnswer.AnswerSource value)

List of all individual answers given to the question.

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

Parameters
Name Description
index int
value QaAnswer.AnswerSource
Returns
Type Description
QaAnswer.Builder

addAnswerSources(int index, QaAnswer.AnswerSource.Builder builderForValue)

public QaAnswer.Builder addAnswerSources(int index, QaAnswer.AnswerSource.Builder builderForValue)

List of all individual answers given to the question.

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

Parameters
Name Description
index int
builderForValue QaAnswer.AnswerSource.Builder
Returns
Type Description
QaAnswer.Builder

addAnswerSourcesBuilder()

public QaAnswer.AnswerSource.Builder addAnswerSourcesBuilder()

List of all individual answers given to the question.

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

Returns
Type Description
QaAnswer.AnswerSource.Builder

addAnswerSourcesBuilder(int index)

public QaAnswer.AnswerSource.Builder addAnswerSourcesBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTags(String value)

public QaAnswer.Builder addTags(String value)

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
value String

The tags to add.

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public QaAnswer.Builder addTagsBytes(ByteString value)

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
value ByteString

The bytes of the tags to add.

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

build()

public QaAnswer build()
Returns
Type Description
QaAnswer

buildPartial()

public QaAnswer buildPartial()
Returns
Type Description
QaAnswer

clear()

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

clearAnswerSources()

public QaAnswer.Builder clearAnswerSources()

List of all individual answers given to the question.

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

Returns
Type Description
QaAnswer.Builder

clearAnswerValue()

public QaAnswer.Builder clearAnswerValue()

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

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

Returns
Type Description
QaAnswer.Builder

clearConversation()

public QaAnswer.Builder clearConversation()

The conversation the answer applies to.

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

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQaQuestion()

public QaAnswer.Builder clearQaQuestion()

The QaQuestion answered by this answer.

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

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

clearQuestionBody()

public QaAnswer.Builder clearQuestionBody()

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

string question_body = 6;

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

clearTags()

public QaAnswer.Builder clearTags()

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
QaAnswer.Builder

This builder for chaining.

clone()

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

getAnswerSourcesBuilder(int index)

public QaAnswer.AnswerSource.Builder getAnswerSourcesBuilder(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.Builder

getAnswerSourcesBuilderList()

public List<QaAnswer.AnswerSource.Builder> getAnswerSourcesBuilderList()

List of all individual answers given to the question.

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

Returns
Type Description
List<Builder>

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.

getAnswerValueBuilder()

public QaAnswer.AnswerValue.Builder getAnswerValueBuilder()

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.Builder

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

getDescriptorForType()

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnswerValue(QaAnswer.AnswerValue value)

public QaAnswer.Builder mergeAnswerValue(QaAnswer.AnswerValue value)

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

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

Parameter
Name Description
value QaAnswer.AnswerValue
Returns
Type Description
QaAnswer.Builder

mergeFrom(QaAnswer other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAnswerSources(int index)

public QaAnswer.Builder removeAnswerSources(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.Builder

setAnswerSources(int index, QaAnswer.AnswerSource value)

public QaAnswer.Builder setAnswerSources(int index, QaAnswer.AnswerSource value)

List of all individual answers given to the question.

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

Parameters
Name Description
index int
value QaAnswer.AnswerSource
Returns
Type Description
QaAnswer.Builder

setAnswerSources(int index, QaAnswer.AnswerSource.Builder builderForValue)

public QaAnswer.Builder setAnswerSources(int index, QaAnswer.AnswerSource.Builder builderForValue)

List of all individual answers given to the question.

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

Parameters
Name Description
index int
builderForValue QaAnswer.AnswerSource.Builder
Returns
Type Description
QaAnswer.Builder

setAnswerValue(QaAnswer.AnswerValue value)

public QaAnswer.Builder setAnswerValue(QaAnswer.AnswerValue value)

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

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

Parameter
Name Description
value QaAnswer.AnswerValue
Returns
Type Description
QaAnswer.Builder

setAnswerValue(QaAnswer.AnswerValue.Builder builderForValue)

public QaAnswer.Builder setAnswerValue(QaAnswer.AnswerValue.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue QaAnswer.AnswerValue.Builder
Returns
Type Description
QaAnswer.Builder

setConversation(String value)

public QaAnswer.Builder setConversation(String value)

The conversation the answer applies to.

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

Parameter
Name Description
value String

The conversation to set.

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

setConversationBytes(ByteString value)

public QaAnswer.Builder setConversationBytes(ByteString value)

The conversation the answer applies to.

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

Parameter
Name Description
value ByteString

The bytes for conversation to set.

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setQaQuestion(String value)

public QaAnswer.Builder setQaQuestion(String value)

The QaQuestion answered by this answer.

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

Parameter
Name Description
value String

The qaQuestion to set.

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

setQaQuestionBytes(ByteString value)

public QaAnswer.Builder setQaQuestionBytes(ByteString value)

The QaQuestion answered by this answer.

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

Parameter
Name Description
value ByteString

The bytes for qaQuestion to set.

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

setQuestionBody(String value)

public QaAnswer.Builder setQuestionBody(String value)

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

string question_body = 6;

Parameter
Name Description
value String

The questionBody to set.

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

setQuestionBodyBytes(ByteString value)

public QaAnswer.Builder setQuestionBodyBytes(ByteString value)

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

string question_body = 6;

Parameter
Name Description
value ByteString

The bytes for questionBody to set.

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

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

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

setTags(int index, String value)

public QaAnswer.Builder setTags(int index, String value)

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;

Parameters
Name Description
index int

The index to set the value at.

value String

The tags to set.

Returns
Type Description
QaAnswer.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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