public final class QaQuestion extends com.google.protobuf.GeneratedMessageV3 implements QaQuestionOrBuilder
A single question to be scored by the Insights QA feature.Protobuf type
google.cloud.contactcenterinsights.v1.QaQuestion| Modifier and Type | Class and Description |
|---|---|
static class |
QaQuestion.AnswerChoice
Message representing a possible answer to the question.
|
static interface |
QaQuestion.AnswerChoiceOrBuilder |
static class |
QaQuestion.Builder
A single question to be scored by the Insights QA feature.
|
static class |
QaQuestion.Metrics
A wrapper representing metrics calculated against a test-set on a LLM that
was fine tuned for this question.
|
static interface |
QaQuestion.MetricsOrBuilder |
static class |
QaQuestion.TuningMetadata
Metadata about the tuning operation for the question.
|
static interface |
QaQuestion.TuningMetadataOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ABBREVIATION_FIELD_NUMBER |
static int |
ANSWER_CHOICES_FIELD_NUMBER |
static int |
ANSWER_INSTRUCTIONS_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
METRICS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
ORDER_FIELD_NUMBER |
static int |
QUESTION_BODY_FIELD_NUMBER |
static int |
TAGS_FIELD_NUMBER |
static int |
TUNING_METADATA_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAbbreviation()
Short, descriptive string, used in the UI where it's not practical
to display the full question body.
|
com.google.protobuf.ByteString |
getAbbreviationBytes()
Short, descriptive string, used in the UI where it's not practical
to display the full question body.
|
QaQuestion.AnswerChoice |
getAnswerChoices(int index)
A list of valid answers to the question, which the LLM must choose from.
|
int |
getAnswerChoicesCount()
A list of valid answers to the question, which the LLM must choose from.
|
List<QaQuestion.AnswerChoice> |
getAnswerChoicesList()
A list of valid answers to the question, which the LLM must choose from.
|
QaQuestion.AnswerChoiceOrBuilder |
getAnswerChoicesOrBuilder(int index)
A list of valid answers to the question, which the LLM must choose from.
|
List<? extends QaQuestion.AnswerChoiceOrBuilder> |
getAnswerChoicesOrBuilderList()
A list of valid answers to the question, which the LLM must choose from.
|
String |
getAnswerInstructions()
Instructions describing how to determine the answer.
|
com.google.protobuf.ByteString |
getAnswerInstructionsBytes()
Instructions describing how to determine the answer.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static QaQuestion |
getDefaultInstance() |
QaQuestion |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
QaQuestion.Metrics |
getMetrics()
Metrics of the underlying tuned LLM over a holdout/test set while fine
tuning the underlying LLM for the given question.
|
QaQuestion.MetricsOrBuilder |
getMetricsOrBuilder()
Metrics of the underlying tuned LLM over a holdout/test set while fine
tuning the underlying LLM for the given question.
|
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
int |
getOrder()
Defines the order of the question within its parent scorecard revision.
|
com.google.protobuf.Parser<QaQuestion> |
getParserForType() |
String |
getQuestionBody()
Question text.
|
com.google.protobuf.ByteString |
getQuestionBodyBytes()
Question text.
|
int |
getSerializedSize() |
String |
getTags(int index)
User-defined list of arbitrary tags for the question.
|
com.google.protobuf.ByteString |
getTagsBytes(int index)
User-defined list of arbitrary tags for the question.
|
int |
getTagsCount()
User-defined list of arbitrary tags for the question.
|
com.google.protobuf.ProtocolStringList |
getTagsList()
User-defined list of arbitrary tags for the question.
|
QaQuestion.TuningMetadata |
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.
|
QaQuestion.TuningMetadataOrBuilder |
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.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
int |
hashCode() |
boolean |
hasMetrics()
Metrics of the underlying tuned LLM over a holdout/test set while fine
tuning the underlying LLM for the given question.
|
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.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static QaQuestion.Builder |
newBuilder() |
static QaQuestion.Builder |
newBuilder(QaQuestion prototype) |
QaQuestion.Builder |
newBuilderForType() |
protected QaQuestion.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static QaQuestion |
parseDelimitedFrom(InputStream input) |
static QaQuestion |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QaQuestion |
parseFrom(byte[] data) |
static QaQuestion |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QaQuestion |
parseFrom(ByteBuffer data) |
static QaQuestion |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QaQuestion |
parseFrom(com.google.protobuf.ByteString data) |
static QaQuestion |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QaQuestion |
parseFrom(com.google.protobuf.CodedInputStream input) |
static QaQuestion |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QaQuestion |
parseFrom(InputStream input) |
static QaQuestion |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<QaQuestion> |
parser() |
QaQuestion.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int ABBREVIATION_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int QUESTION_BODY_FIELD_NUMBER
public static final int ANSWER_INSTRUCTIONS_FIELD_NUMBER
public static final int ANSWER_CHOICES_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
public static final int ORDER_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER
public static final int TUNING_METADATA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String 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];getName in interface QaQuestionOrBuilderpublic 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];getNameBytes in interface QaQuestionOrBuilderpublic String 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;getAbbreviation in interface QaQuestionOrBuilderpublic 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;getAbbreviationBytes in interface QaQuestionOrBuilderpublic boolean hasCreateTime()
Output only. The time at which this question was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface QaQuestionOrBuilderpublic 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];
getCreateTime in interface QaQuestionOrBuilderpublic 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];
getCreateTimeOrBuilder in interface QaQuestionOrBuilderpublic 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];
hasUpdateTime in interface QaQuestionOrBuilderpublic 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];
getUpdateTime in interface QaQuestionOrBuilderpublic 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];
getUpdateTimeOrBuilder in interface QaQuestionOrBuilderpublic String getQuestionBody()
Question text. E.g., "Did the agent greet the customer?"
string question_body = 5;getQuestionBody in interface QaQuestionOrBuilderpublic com.google.protobuf.ByteString getQuestionBodyBytes()
Question text. E.g., "Did the agent greet the customer?"
string question_body = 5;getQuestionBodyBytes in interface QaQuestionOrBuilderpublic String getAnswerInstructions()
Instructions describing how to determine the answer.
string answer_instructions = 9;getAnswerInstructions in interface QaQuestionOrBuilderpublic com.google.protobuf.ByteString getAnswerInstructionsBytes()
Instructions describing how to determine the answer.
string answer_instructions = 9;getAnswerInstructionsBytes in interface QaQuestionOrBuilderpublic List<QaQuestion.AnswerChoice> 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;
getAnswerChoicesList in interface QaQuestionOrBuilderpublic List<? extends QaQuestion.AnswerChoiceOrBuilder> 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;
getAnswerChoicesOrBuilderList in interface QaQuestionOrBuilderpublic 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;
getAnswerChoicesCount in interface QaQuestionOrBuilderpublic QaQuestion.AnswerChoice getAnswerChoices(int index)
A list of valid answers to the question, which the LLM must choose from.
repeated .google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice answer_choices = 6;
getAnswerChoices in interface QaQuestionOrBuilderpublic QaQuestion.AnswerChoiceOrBuilder getAnswerChoicesOrBuilder(int index)
A list of valid answers to the question, which the LLM must choose from.
repeated .google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice answer_choices = 6;
getAnswerChoicesOrBuilder in interface QaQuestionOrBuilderpublic 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;getTagsList in interface QaQuestionOrBuilderpublic 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;getTagsCount in interface QaQuestionOrBuilderpublic String getTags(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;getTags in interface QaQuestionOrBuilderindex - The index of the element to return.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;getTagsBytes in interface QaQuestionOrBuilderindex - The index of the value to return.public int getOrder()
Defines the order of the question within its parent scorecard revision.
int32 order = 8;getOrder in interface QaQuestionOrBuilderpublic 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;hasMetrics in interface QaQuestionOrBuilderpublic QaQuestion.Metrics 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;getMetrics in interface QaQuestionOrBuilderpublic QaQuestion.MetricsOrBuilder 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;getMetricsOrBuilder in interface QaQuestionOrBuilderpublic 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;
hasTuningMetadata in interface QaQuestionOrBuilderpublic QaQuestion.TuningMetadata 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;
getTuningMetadata in interface QaQuestionOrBuilderpublic QaQuestion.TuningMetadataOrBuilder 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;
getTuningMetadataOrBuilder in interface QaQuestionOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static QaQuestion parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QaQuestion parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QaQuestion parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QaQuestion parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QaQuestion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QaQuestion parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QaQuestion parseFrom(InputStream input) throws IOException
IOExceptionpublic static QaQuestion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QaQuestion parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static QaQuestion parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QaQuestion parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static QaQuestion parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic QaQuestion.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static QaQuestion.Builder newBuilder()
public static QaQuestion.Builder newBuilder(QaQuestion prototype)
public QaQuestion.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected QaQuestion.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static QaQuestion getDefaultInstance()
public static com.google.protobuf.Parser<QaQuestion> parser()
public com.google.protobuf.Parser<QaQuestion> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public QaQuestion getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.