java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.contactcenterinsights.v1.QaAnswer
All Implemented Interfaces:
QaAnswerOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class QaAnswer extends com.google.protobuf.GeneratedMessage implements QaAnswerOrBuilder
 An answer to a QaQuestion.
 
Protobuf type google.cloud.contactcenterinsights.v1.QaAnswer
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A question may have multiple answers from varying sources, one of which becomes the "main" answer above.
    static interface 
     
    static final class 
    Message for holding the value of a [QaAnswer][google.cloud.contactcenterinsights.v1.QaAnswer].
    static interface 
     
    static final class 
    An answer to a QaQuestion.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    getAnswerSources(int index)
    List of all individual answers given to the question.
    int
    List of all individual answers given to the question.
    List of all individual answers given to the question.
    List of all individual answers given to the question.
    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 conversation the answer applies to.
    com.google.protobuf.ByteString
    The conversation the answer applies to.
    static QaAnswer
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Parser<QaAnswer>
     
    The QaQuestion answered by this answer.
    com.google.protobuf.ByteString
    The QaQuestion answered by this answer.
    Question text.
    com.google.protobuf.ByteString
    Question text.
    int
     
    getTags(int index)
    User-defined list of arbitrary tags.
    com.google.protobuf.ByteString
    getTagsBytes(int index)
    User-defined list of arbitrary tags.
    int
    User-defined list of arbitrary tags.
    com.google.protobuf.ProtocolStringList
    User-defined list of arbitrary tags.
    boolean
    The main answer value, incorporating any manual edits if they exist.
    int
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(QaAnswer prototype)
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static QaAnswer
     
    static QaAnswer
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static QaAnswer
    parseFrom(byte[] data)
     
    static QaAnswer
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static QaAnswer
    parseFrom(com.google.protobuf.ByteString data)
     
    static QaAnswer
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static QaAnswer
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static QaAnswer
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static QaAnswer
     
    static QaAnswer
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static QaAnswer
     
    static QaAnswer
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<QaAnswer>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • QA_QUESTION_FIELD_NUMBER

      public static final int QA_QUESTION_FIELD_NUMBER
      See Also:
    • CONVERSATION_FIELD_NUMBER

      public static final int CONVERSATION_FIELD_NUMBER
      See Also:
    • QUESTION_BODY_FIELD_NUMBER

      public static final int QUESTION_BODY_FIELD_NUMBER
      See Also:
    • ANSWER_VALUE_FIELD_NUMBER

      public static final int ANSWER_VALUE_FIELD_NUMBER
      See Also:
    • TAGS_FIELD_NUMBER

      public static final int TAGS_FIELD_NUMBER
      See Also:
    • ANSWER_SOURCES_FIELD_NUMBER

      public static final int ANSWER_SOURCES_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getQaQuestion

      public String getQaQuestion()
       The QaQuestion answered by this answer.
       
      string qa_question = 7 [(.google.api.resource_reference) = { ... }
      Specified by:
      getQaQuestion in interface QaAnswerOrBuilder
      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:
      getQaQuestionBytes in interface QaAnswerOrBuilder
      Returns:
      The bytes for qaQuestion.
    • getConversation

      public String getConversation()
       The conversation the answer applies to.
       
      string conversation = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getConversation in interface QaAnswerOrBuilder
      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:
      getConversationBytes in interface QaAnswerOrBuilder
      Returns:
      The bytes for conversation.
    • getQuestionBody

      public String getQuestionBody()
       Question text. E.g., "Did the agent greet the customer?"
       
      string question_body = 6;
      Specified by:
      getQuestionBody in interface QaAnswerOrBuilder
      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:
      getQuestionBodyBytes in interface QaAnswerOrBuilder
      Returns:
      The bytes for questionBody.
    • 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:
      hasAnswerValue in interface QaAnswerOrBuilder
      Returns:
      Whether the answerValue field is set.
    • 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;
      Specified by:
      getAnswerValue in interface QaAnswerOrBuilder
      Returns:
      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;
      Specified by:
      getAnswerValueOrBuilder in interface QaAnswerOrBuilder
    • 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:
      getTagsList in interface QaAnswerOrBuilder
      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:
      getTagsCount in interface QaAnswerOrBuilder
      Returns:
      The count of tags.
    • getTags

      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;
      Specified by:
      getTags in interface QaAnswerOrBuilder
      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:
      getTagsBytes in interface QaAnswerOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • 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;
      Specified by:
      getAnswerSourcesList in interface QaAnswerOrBuilder
    • 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;
      Specified by:
      getAnswerSourcesOrBuilderList in interface QaAnswerOrBuilder
    • 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:
      getAnswerSourcesCount in interface QaAnswerOrBuilder
    • getAnswerSources

      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;
      Specified by:
      getAnswerSources in interface QaAnswerOrBuilder
    • getAnswerSourcesOrBuilder

      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;
      Specified by:
      getAnswerSourcesOrBuilder in interface QaAnswerOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static QaAnswer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QaAnswer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QaAnswer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QaAnswer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QaAnswer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QaAnswer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QaAnswer parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QaAnswer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QaAnswer parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QaAnswer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QaAnswer parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QaAnswer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public QaAnswer.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static QaAnswer.Builder newBuilder()
    • newBuilder

      public static QaAnswer.Builder newBuilder(QaAnswer prototype)
    • toBuilder

      public QaAnswer.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected QaAnswer.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static QaAnswer getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<QaAnswer> parser()
    • getParserForType

      public com.google.protobuf.Parser<QaAnswer> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public QaAnswer getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder