Class QaAnswer.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QaAnswer.Builder>
com.google.cloud.contactcenterinsights.v1.QaAnswer.Builder
- All Implemented Interfaces:
QaAnswerOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- QaAnswer
public static final class QaAnswer.Builder
extends com.google.protobuf.GeneratedMessage.Builder<QaAnswer.Builder>
implements QaAnswerOrBuilder
An answer to a QaQuestion.Protobuf type
google.cloud.contactcenterinsights.v1.QaAnswer-
Method Summary
Modifier and TypeMethodDescriptionaddAllAnswerSources(Iterable<? extends QaAnswer.AnswerSource> values) List of all individual answers given to the question.addAllTags(Iterable<String> values) User-defined list of arbitrary tags.addAnswerSources(int index, QaAnswer.AnswerSource value) List of all individual answers given to the question.addAnswerSources(int index, QaAnswer.AnswerSource.Builder builderForValue) List of all individual answers given to the question.List of all individual answers given to the question.addAnswerSources(QaAnswer.AnswerSource.Builder builderForValue) List of all individual answers given to the question.List of all individual answers given to the question.addAnswerSourcesBuilder(int index) List of all individual answers given to the question.User-defined list of arbitrary tags.addTagsBytes(com.google.protobuf.ByteString value) User-defined list of arbitrary tags.build()clear()List of all individual answers given to the question.The main answer value, incorporating any manual edits if they exist.The conversation the answer applies to.The QaQuestion answered by this answer.Question text.User-defined list of arbitrary tags.getAnswerSources(int index) List of all individual answers given to the question.getAnswerSourcesBuilder(int index) List of all individual answers given to the question.List of all individual answers given to the question.intList of all individual answers given to the question.List of all individual answers given to the question.getAnswerSourcesOrBuilder(int index) List of all individual answers given to the question.List<? extends QaAnswer.AnswerSourceOrBuilder>List of all individual answers given to the question.The main answer value, incorporating any manual edits if they exist.The main answer value, incorporating any manual edits if they exist.The main answer value, incorporating any manual edits if they exist.The conversation the answer applies to.com.google.protobuf.ByteStringThe conversation the answer applies to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe QaQuestion answered by this answer.com.google.protobuf.ByteStringThe QaQuestion answered by this answer.Question text.com.google.protobuf.ByteStringQuestion text.getTags(int index) User-defined list of arbitrary tags.com.google.protobuf.ByteStringgetTagsBytes(int index) User-defined list of arbitrary tags.intUser-defined list of arbitrary tags.com.google.protobuf.ProtocolStringListUser-defined list of arbitrary tags.booleanThe main answer value, incorporating any manual edits if they exist.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe main answer value, incorporating any manual edits if they exist.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeAnswerSources(int index) List of all individual answers given to the question.setAnswerSources(int index, QaAnswer.AnswerSource value) List of all individual answers given to the question.setAnswerSources(int index, QaAnswer.AnswerSource.Builder builderForValue) List of all individual answers given to the question.The main answer value, incorporating any manual edits if they exist.setAnswerValue(QaAnswer.AnswerValue.Builder builderForValue) The main answer value, incorporating any manual edits if they exist.setConversation(String value) The conversation the answer applies to.setConversationBytes(com.google.protobuf.ByteString value) The conversation the answer applies to.setQaQuestion(String value) The QaQuestion answered by this answer.setQaQuestionBytes(com.google.protobuf.ByteString value) The QaQuestion answered by this answer.setQuestionBody(String value) Question text.setQuestionBodyBytes(com.google.protobuf.ByteString value) Question text.User-defined list of arbitrary tags.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<QaAnswer.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<QaAnswer.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<QaAnswer.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QaAnswer.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<QaAnswer.Builder>
-
mergeFrom
public QaAnswer.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QaAnswer.Builder>- Throws:
IOException
-
getQaQuestion
The QaQuestion answered by this answer.
string qa_question = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getQaQuestionin interfaceQaAnswerOrBuilder- Returns:
- The qaQuestion.
-
getQaQuestionBytes
public com.google.protobuf.ByteString getQaQuestionBytes()The QaQuestion answered by this answer.
string qa_question = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getQaQuestionBytesin interfaceQaAnswerOrBuilder- Returns:
- The bytes for qaQuestion.
-
setQaQuestion
The QaQuestion answered by this answer.
string qa_question = 7 [(.google.api.resource_reference) = { ... }- Parameters:
value- The qaQuestion to set.- Returns:
- This builder for chaining.
-
clearQaQuestion
The QaQuestion answered by this answer.
string qa_question = 7 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setQaQuestionBytes
The QaQuestion answered by this answer.
string qa_question = 7 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for qaQuestion to set.- Returns:
- This builder for chaining.
-
getConversation
The conversation the answer applies to.
string conversation = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getConversationin interfaceQaAnswerOrBuilder- Returns:
- The conversation.
-
getConversationBytes
public com.google.protobuf.ByteString getConversationBytes()The conversation the answer applies to.
string conversation = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getConversationBytesin interfaceQaAnswerOrBuilder- Returns:
- The bytes for conversation.
-
setConversation
The conversation the answer applies to.
string conversation = 2 [(.google.api.resource_reference) = { ... }- Parameters:
value- The conversation to set.- Returns:
- This builder for chaining.
-
clearConversation
The conversation the answer applies to.
string conversation = 2 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setConversationBytes
The conversation the answer applies to.
string conversation = 2 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for conversation to set.- Returns:
- This builder for chaining.
-
getQuestionBody
Question text. E.g., "Did the agent greet the customer?"
string question_body = 6;- Specified by:
getQuestionBodyin interfaceQaAnswerOrBuilder- Returns:
- The questionBody.
-
getQuestionBodyBytes
public com.google.protobuf.ByteString getQuestionBodyBytes()Question text. E.g., "Did the agent greet the customer?"
string question_body = 6;- Specified by:
getQuestionBodyBytesin interfaceQaAnswerOrBuilder- Returns:
- The bytes for questionBody.
-
setQuestionBody
Question text. E.g., "Did the agent greet the customer?"
string question_body = 6;- Parameters:
value- The questionBody to set.- Returns:
- This builder for chaining.
-
clearQuestionBody
Question text. E.g., "Did the agent greet the customer?"
string question_body = 6;- Returns:
- This builder for chaining.
-
setQuestionBodyBytes
Question text. E.g., "Did the agent greet the customer?"
string question_body = 6;- Parameters:
value- The bytes for questionBody to set.- Returns:
- This builder for chaining.
-
hasAnswerValue
public boolean hasAnswerValue()The main answer value, incorporating any manual edits if they exist.
.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;- Specified by:
hasAnswerValuein interfaceQaAnswerOrBuilder- Returns:
- Whether the answerValue field is set.
-
getAnswerValue
The main answer value, incorporating any manual edits if they exist.
.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;- Specified by:
getAnswerValuein interfaceQaAnswerOrBuilder- Returns:
- The answerValue.
-
setAnswerValue
The main answer value, incorporating any manual edits if they exist.
.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3; -
setAnswerValue
The main answer value, incorporating any manual edits if they exist.
.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3; -
mergeAnswerValue
The main answer value, incorporating any manual edits if they exist.
.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3; -
clearAnswerValue
The main answer value, incorporating any manual edits if they exist.
.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3; -
getAnswerValueBuilder
The main answer value, incorporating any manual edits if they exist.
.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3; -
getAnswerValueOrBuilder
The main answer value, incorporating any manual edits if they exist.
.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;- Specified by:
getAnswerValueOrBuilderin interfaceQaAnswerOrBuilder
-
getTagsList
public com.google.protobuf.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;- Specified by:
getTagsListin interfaceQaAnswerOrBuilder- Returns:
- A list containing the tags.
-
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;- Specified by:
getTagsCountin interfaceQaAnswerOrBuilder- Returns:
- The count of tags.
-
getTags
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;- Specified by:
getTagsin interfaceQaAnswerOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.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;- Specified by:
getTagsBytesin interfaceQaAnswerOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
setTags
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:
index- The index to set the value at.value- The tags to set.- Returns:
- This builder for chaining.
-
addTags
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:
value- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
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:
values- The tags to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addTagsBytes
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:
value- The bytes of the tags to add.- Returns:
- This builder for chaining.
-
getAnswerSourcesList
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;- Specified by:
getAnswerSourcesListin interfaceQaAnswerOrBuilder
-
getAnswerSourcesCount
public int getAnswerSourcesCount()List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;- Specified by:
getAnswerSourcesCountin interfaceQaAnswerOrBuilder
-
getAnswerSources
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;- Specified by:
getAnswerSourcesin interfaceQaAnswerOrBuilder
-
setAnswerSources
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8; -
setAnswerSources
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8; -
addAnswerSources
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8; -
addAnswerSources
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8; -
addAnswerSources
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8; -
addAnswerSources
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8; -
addAllAnswerSources
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8; -
clearAnswerSources
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8; -
removeAnswerSources
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8; -
getAnswerSourcesBuilder
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8; -
getAnswerSourcesOrBuilder
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;- Specified by:
getAnswerSourcesOrBuilderin interfaceQaAnswerOrBuilder
-
getAnswerSourcesOrBuilderList
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;- Specified by:
getAnswerSourcesOrBuilderListin interfaceQaAnswerOrBuilder
-
addAnswerSourcesBuilder
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8; -
addAnswerSourcesBuilder
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8; -
getAnswerSourcesBuilderList
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
-