public final class QaQuestion extends GeneratedMessageV3 implements QaQuestionOrBuilder
A single question to be scored by the Insights QA feature.
Protobuf type google.cloud.contactcenterinsights.v1.QaQuestion
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ABBREVIATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ANSWER_CHOICES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ANSWER_INSTRUCTIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int METRICS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ORDER_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
QUESTION_BODY_FIELD_NUMBER
public static final int QUESTION_BODY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TAGS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TUNING_METADATA_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static QaQuestion getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static QaQuestion.Builder newBuilder()
public static QaQuestion.Builder newBuilder(QaQuestion prototype)
public static QaQuestion parseDelimitedFrom(InputStream input)
public static QaQuestion parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QaQuestion parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static QaQuestion parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static QaQuestion parseFrom(ByteString data)
public static QaQuestion parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QaQuestion parseFrom(CodedInputStream input)
public static QaQuestion parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static QaQuestion parseFrom(InputStream input)
public static QaQuestion parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QaQuestion parseFrom(ByteBuffer data)
public static QaQuestion parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<QaQuestion> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public 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;
Returns |
Type |
Description |
String |
The abbreviation.
|
public 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;
Returns |
Type |
Description |
ByteString |
The bytes for abbreviation.
|
public 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;
Parameter |
Name |
Description |
index |
int
|
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;
Returns |
Type |
Description |
int |
|
public 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;
public 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;
Parameter |
Name |
Description |
index |
int
|
public 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;
Returns |
Type |
Description |
List<? extends com.google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoiceOrBuilder> |
|
public String getAnswerInstructions()
Instructions describing how to determine the answer.
string answer_instructions = 9;
Returns |
Type |
Description |
String |
The answerInstructions.
|
public ByteString getAnswerInstructionsBytes()
Instructions describing how to determine the answer.
string answer_instructions = 9;
Returns |
Type |
Description |
ByteString |
The bytes for answerInstructions.
|
public Timestamp getCreateTime()
Output only. The time at which this question was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
Timestamp |
The createTime.
|
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time at which this question was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public QaQuestion getDefaultInstanceForType()
public 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;
public 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;
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];
Returns |
Type |
Description |
String |
The name.
|
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
Defines the order of the question within its parent scorecard revision.
int32 order = 8;
Returns |
Type |
Description |
int |
The order.
|
public Parser<QaQuestion> getParserForType()
Overrides
getQuestionBody()
public String getQuestionBody()
Question text. E.g., "Did the agent greet the customer?"
string question_body = 5;
Returns |
Type |
Description |
String |
The questionBody.
|
getQuestionBodyBytes()
public ByteString getQuestionBodyBytes()
Question text. E.g., "Did the agent greet the customer?"
string question_body = 5;
Returns |
Type |
Description |
ByteString |
The bytes for questionBody.
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public 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;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The tags at the given index.
|
public 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;
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.
|
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;
Returns |
Type |
Description |
int |
The count of tags.
|
public 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;
public 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;
public 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;
public 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];
Returns |
Type |
Description |
Timestamp |
The updateTime.
|
public 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];
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];
Returns |
Type |
Description |
boolean |
Whether the createTime field is set.
|
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;
Returns |
Type |
Description |
boolean |
Whether the metrics field is set.
|
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;
Returns |
Type |
Description |
boolean |
Whether the tuningMetadata field is set.
|
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];
Returns |
Type |
Description |
boolean |
Whether the updateTime field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public QaQuestion.Builder newBuilderForType()
protected QaQuestion.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public QaQuestion.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides