Class QaQuestion
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.contactcenterinsights.v1.QaQuestion
- All Implemented Interfaces:
QaQuestionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class QaQuestion
extends com.google.protobuf.GeneratedMessage
implements QaQuestionOrBuilder
A single question to be scored by the Insights QA feature.Protobuf type
google.cloud.contactcenterinsights.v1.QaQuestion- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMessage representing a possible answer to the question.static interfacestatic final classA single question to be scored by the Insights QA feature.static final classA wrapper representing metrics calculated against a test-set on a LLM that was fine tuned for this question.static interfacestatic final classMetadata about the tuning operation for the question.static interfaceNested 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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanShort, descriptive string, used in the UI where it's not practical to display the full question body.com.google.protobuf.ByteStringShort, descriptive string, used in the UI where it's not practical to display the full question body.getAnswerChoices(int index) A list of valid answers to the question, which the LLM must choose from.intA list of valid answers to the question, which the LLM must choose from.A list of valid answers to the question, which the LLM must choose from.getAnswerChoicesOrBuilder(int index) A list of valid answers to the question, which the LLM must choose from.List<? extends QaQuestion.AnswerChoiceOrBuilder>A list of valid answers to the question, which the LLM must choose from.Instructions describing how to determine the answer.com.google.protobuf.ByteStringInstructions describing how to determine the answer.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static QaQuestionstatic final com.google.protobuf.Descriptors.DescriptorMetrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question.Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question.getName()Identifier.com.google.protobuf.ByteStringIdentifier.intgetOrder()Defines the order of the question within its parent scorecard revision.com.google.protobuf.Parser<QaQuestion>Question text.com.google.protobuf.ByteStringQuestion text.intgetTags(int index) User-defined list of arbitrary tags for the question.com.google.protobuf.ByteStringgetTagsBytes(int index) User-defined list of arbitrary tags for the question.intUser-defined list of arbitrary tags for the question.com.google.protobuf.ProtocolStringListUser-defined list of arbitrary tags for the question.Metadata about the tuning operation for the question.This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.Metadata about the tuning operation for the question.This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.inthashCode()booleanMetrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question.booleanMetadata about the tuning operation for the question.This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic QaQuestion.Builderstatic QaQuestion.BuildernewBuilder(QaQuestion prototype) protected QaQuestion.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static QaQuestionparseDelimitedFrom(InputStream input) static QaQuestionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaQuestionparseFrom(byte[] data) static QaQuestionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaQuestionparseFrom(com.google.protobuf.ByteString data) static QaQuestionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaQuestionparseFrom(com.google.protobuf.CodedInputStream input) static QaQuestionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaQuestionparseFrom(InputStream input) static QaQuestionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaQuestionparseFrom(ByteBuffer data) static QaQuestionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<QaQuestion>parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
ABBREVIATION_FIELD_NUMBER
public static final int ABBREVIATION_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
QUESTION_BODY_FIELD_NUMBER
public static final int QUESTION_BODY_FIELD_NUMBER- See Also:
-
ANSWER_INSTRUCTIONS_FIELD_NUMBER
public static final int ANSWER_INSTRUCTIONS_FIELD_NUMBER- See Also:
-
ANSWER_CHOICES_FIELD_NUMBER
public static final int ANSWER_CHOICES_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
ORDER_FIELD_NUMBER
public static final int ORDER_FIELD_NUMBER- See Also:
-
METRICS_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER- See Also:
-
TUNING_METADATA_FIELD_NUMBER
public static final int TUNING_METADATA_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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceQaQuestionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceQaQuestionOrBuilder- Returns:
- The bytes for name.
-
getAbbreviation
Short, descriptive string, used in the UI where it's not practical to display the full question body. E.g., "Greeting".
string abbreviation = 2;- Specified by:
getAbbreviationin interfaceQaQuestionOrBuilder- Returns:
- The abbreviation.
-
getAbbreviationBytes
public com.google.protobuf.ByteString getAbbreviationBytes()Short, descriptive string, used in the UI where it's not practical to display the full question body. E.g., "Greeting".
string abbreviation = 2;- Specified by:
getAbbreviationBytesin interfaceQaQuestionOrBuilder- Returns:
- The bytes for abbreviation.
-
hasCreateTime
public boolean hasCreateTime()Output only. The time at which this question was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceQaQuestionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time at which this question was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceQaQuestionOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time at which this question was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceQaQuestionOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The most recent time at which the question was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceQaQuestionOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The most recent time at which the question was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceQaQuestionOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The most recent time at which the question was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceQaQuestionOrBuilder
-
getQuestionBody
Question text. E.g., "Did the agent greet the customer?"
string question_body = 5;- Specified by:
getQuestionBodyin interfaceQaQuestionOrBuilder- Returns:
- The questionBody.
-
getQuestionBodyBytes
public com.google.protobuf.ByteString getQuestionBodyBytes()Question text. E.g., "Did the agent greet the customer?"
string question_body = 5;- Specified by:
getQuestionBodyBytesin interfaceQaQuestionOrBuilder- Returns:
- The bytes for questionBody.
-
getAnswerInstructions
Instructions describing how to determine the answer.
string answer_instructions = 9;- Specified by:
getAnswerInstructionsin interfaceQaQuestionOrBuilder- Returns:
- The answerInstructions.
-
getAnswerInstructionsBytes
public com.google.protobuf.ByteString getAnswerInstructionsBytes()Instructions describing how to determine the answer.
string answer_instructions = 9;- Specified by:
getAnswerInstructionsBytesin interfaceQaQuestionOrBuilder- Returns:
- The bytes for answerInstructions.
-
getAnswerChoicesList
A list of valid answers to the question, which the LLM must choose from.
repeated .google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice answer_choices = 6;- Specified by:
getAnswerChoicesListin interfaceQaQuestionOrBuilder
-
getAnswerChoicesOrBuilderList
A list of valid answers to the question, which the LLM must choose from.
repeated .google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice answer_choices = 6;- Specified by:
getAnswerChoicesOrBuilderListin interfaceQaQuestionOrBuilder
-
getAnswerChoicesCount
public int getAnswerChoicesCount()A list of valid answers to the question, which the LLM must choose from.
repeated .google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice answer_choices = 6;- Specified by:
getAnswerChoicesCountin interfaceQaQuestionOrBuilder
-
getAnswerChoices
A list of valid answers to the question, which the LLM must choose from.
repeated .google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice answer_choices = 6;- Specified by:
getAnswerChoicesin interfaceQaQuestionOrBuilder
-
getAnswerChoicesOrBuilder
A list of valid answers to the question, which the LLM must choose from.
repeated .google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice answer_choices = 6;- Specified by:
getAnswerChoicesOrBuilderin interfaceQaQuestionOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()User-defined list of arbitrary tags for the question. Used for grouping/organization and for weighting the score of each question.
repeated string tags = 7;- Specified by:
getTagsListin interfaceQaQuestionOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()User-defined list of arbitrary tags for the question. Used for grouping/organization and for weighting the score of each question.
repeated string tags = 7;- Specified by:
getTagsCountin interfaceQaQuestionOrBuilder- Returns:
- The count of tags.
-
getTags
User-defined list of arbitrary tags for the question. Used for grouping/organization and for weighting the score of each question.
repeated string tags = 7;- Specified by:
getTagsin interfaceQaQuestionOrBuilder- 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 for the question. Used for grouping/organization and for weighting the score of each question.
repeated string tags = 7;- Specified by:
getTagsBytesin interfaceQaQuestionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getOrder
public int getOrder()Defines the order of the question within its parent scorecard revision.
int32 order = 8;- Specified by:
getOrderin interfaceQaQuestionOrBuilder- Returns:
- The order.
-
hasMetrics
public boolean hasMetrics()Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question. This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
.google.cloud.contactcenterinsights.v1.QaQuestion.Metrics metrics = 10;- Specified by:
hasMetricsin interfaceQaQuestionOrBuilder- Returns:
- Whether the metrics field is set.
-
getMetrics
Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question. This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
.google.cloud.contactcenterinsights.v1.QaQuestion.Metrics metrics = 10;- Specified by:
getMetricsin interfaceQaQuestionOrBuilder- Returns:
- The metrics.
-
getMetricsOrBuilder
Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question. This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
.google.cloud.contactcenterinsights.v1.QaQuestion.Metrics metrics = 10;- Specified by:
getMetricsOrBuilderin interfaceQaQuestionOrBuilder
-
hasTuningMetadata
public boolean hasTuningMetadata()Metadata about the tuning operation for the question.This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
.google.cloud.contactcenterinsights.v1.QaQuestion.TuningMetadata tuning_metadata = 11;- Specified by:
hasTuningMetadatain interfaceQaQuestionOrBuilder- Returns:
- Whether the tuningMetadata field is set.
-
getTuningMetadata
Metadata about the tuning operation for the question.This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
.google.cloud.contactcenterinsights.v1.QaQuestion.TuningMetadata tuning_metadata = 11;- Specified by:
getTuningMetadatain interfaceQaQuestionOrBuilder- Returns:
- The tuningMetadata.
-
getTuningMetadataOrBuilder
Metadata about the tuning operation for the question.This field will only be populated if and only if the question is part of a scorecard revision that has been tuned.
.google.cloud.contactcenterinsights.v1.QaQuestion.TuningMetadata tuning_metadata = 11;- Specified by:
getTuningMetadataOrBuilderin interfaceQaQuestionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static QaQuestion parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaQuestion parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaQuestion parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaQuestion parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaQuestion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaQuestion parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static QaQuestion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static QaQuestion parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static QaQuestion parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected QaQuestion.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-