- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.10
- 2.2.7
public static final class QaQuestion.Builder extends GeneratedMessageV3.Builder<QaQuestion.Builder> implements QaQuestionOrBuilder
A single question to be scored by the Insights QA feature.
Protobuf type google.cloud.contactcenterinsights.v1.QaQuestion
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > QaQuestion.BuilderImplements
QaQuestionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllAnswerChoices(Iterable<? extends QaQuestion.AnswerChoice> values)
public QaQuestion.Builder addAllAnswerChoices(Iterable<? extends QaQuestion.AnswerChoice> values)
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 |
values |
Iterable<? extends com.google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice> |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
addAllTags(Iterable<String> values)
public QaQuestion.Builder addAllTags(Iterable<String> values)
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 |
values |
Iterable<String> The tags to add. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
addAnswerChoices(QaQuestion.AnswerChoice value)
public QaQuestion.Builder addAnswerChoices(QaQuestion.AnswerChoice value)
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 |
value |
QaQuestion.AnswerChoice |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
addAnswerChoices(QaQuestion.AnswerChoice.Builder builderForValue)
public QaQuestion.Builder addAnswerChoices(QaQuestion.AnswerChoice.Builder builderForValue)
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 |
builderForValue |
QaQuestion.AnswerChoice.Builder |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
addAnswerChoices(int index, QaQuestion.AnswerChoice value)
public QaQuestion.Builder addAnswerChoices(int index, QaQuestion.AnswerChoice value)
A list of valid answers to the question, which the LLM must choose from.
repeated .google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice answer_choices = 6;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
QaQuestion.AnswerChoice |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
addAnswerChoices(int index, QaQuestion.AnswerChoice.Builder builderForValue)
public QaQuestion.Builder addAnswerChoices(int index, QaQuestion.AnswerChoice.Builder builderForValue)
A list of valid answers to the question, which the LLM must choose from.
repeated .google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice answer_choices = 6;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
QaQuestion.AnswerChoice.Builder |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
addAnswerChoicesBuilder()
public QaQuestion.AnswerChoice.Builder addAnswerChoicesBuilder()
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 |
QaQuestion.AnswerChoice.Builder |
addAnswerChoicesBuilder(int index)
public QaQuestion.AnswerChoice.Builder addAnswerChoicesBuilder(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 |
Returns | |
---|---|
Type | Description |
QaQuestion.AnswerChoice.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QaQuestion.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
addTags(String value)
public QaQuestion.Builder addTags(String value)
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 |
value |
String The tags to add. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
addTagsBytes(ByteString value)
public QaQuestion.Builder addTagsBytes(ByteString value)
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 |
value |
ByteString The bytes of the tags to add. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
build()
public QaQuestion build()
Returns | |
---|---|
Type | Description |
QaQuestion |
buildPartial()
public QaQuestion buildPartial()
Returns | |
---|---|
Type | Description |
QaQuestion |
clear()
public QaQuestion.Builder clear()
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
clearAbbreviation()
public QaQuestion.Builder clearAbbreviation()
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 |
QaQuestion.Builder |
This builder for chaining. |
clearAnswerChoices()
public QaQuestion.Builder clearAnswerChoices()
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 |
QaQuestion.Builder |
clearAnswerInstructions()
public QaQuestion.Builder clearAnswerInstructions()
Instructions describing how to determine the answer.
string answer_instructions = 9;
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
clearCreateTime()
public QaQuestion.Builder clearCreateTime()
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 |
QaQuestion.Builder |
clearField(Descriptors.FieldDescriptor field)
public QaQuestion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
clearMetrics()
public QaQuestion.Builder clearMetrics()
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 |
QaQuestion.Builder |
clearName()
public QaQuestion.Builder clearName()
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 |
QaQuestion.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public QaQuestion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
clearOrder()
public QaQuestion.Builder clearOrder()
Defines the order of the question within its parent scorecard revision.
int32 order = 8;
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
clearQuestionBody()
public QaQuestion.Builder clearQuestionBody()
Question text. E.g., "Did the agent greet the customer?"
string question_body = 5;
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
clearTags()
public QaQuestion.Builder clearTags()
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 |
QaQuestion.Builder |
This builder for chaining. |
clearTuningMetadata()
public QaQuestion.Builder clearTuningMetadata()
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 |
QaQuestion.Builder |
clearUpdateTime()
public QaQuestion.Builder clearUpdateTime()
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 |
QaQuestion.Builder |
clone()
public QaQuestion.Builder clone()
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
getAbbreviation()
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. |
getAbbreviationBytes()
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. |
getAnswerChoices(int index)
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 |
Returns | |
---|---|
Type | Description |
QaQuestion.AnswerChoice |
getAnswerChoicesBuilder(int index)
public QaQuestion.AnswerChoice.Builder getAnswerChoicesBuilder(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 |
Returns | |
---|---|
Type | Description |
QaQuestion.AnswerChoice.Builder |
getAnswerChoicesBuilderList()
public List<QaQuestion.AnswerChoice.Builder> getAnswerChoicesBuilderList()
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<Builder> |
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;
Returns | |
---|---|
Type | Description |
int |
getAnswerChoicesList()
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;
Returns | |
---|---|
Type | Description |
List<AnswerChoice> |
getAnswerChoicesOrBuilder(int index)
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 |
Returns | |
---|---|
Type | Description |
QaQuestion.AnswerChoiceOrBuilder |
getAnswerChoicesOrBuilderList()
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> |
getAnswerInstructions()
public String getAnswerInstructions()
Instructions describing how to determine the answer.
string answer_instructions = 9;
Returns | |
---|---|
Type | Description |
String |
The answerInstructions. |
getAnswerInstructionsBytes()
public ByteString getAnswerInstructionsBytes()
Instructions describing how to determine the answer.
string answer_instructions = 9;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for answerInstructions. |
getCreateTime()
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. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
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 |
Builder |
getCreateTimeOrBuilder()
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];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public QaQuestion getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
QaQuestion |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getMetrics()
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;
Returns | |
---|---|
Type | Description |
QaQuestion.Metrics |
The metrics. |
getMetricsBuilder()
public QaQuestion.Metrics.Builder getMetricsBuilder()
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 |
QaQuestion.Metrics.Builder |
getMetricsOrBuilder()
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;
Returns | |
---|---|
Type | Description |
QaQuestion.MetricsOrBuilder |
getName()
public 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];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
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. |
getOrder()
public int getOrder()
Defines the order of the question within its parent scorecard revision.
int32 order = 8;
Returns | |
---|---|
Type | Description |
int |
The order. |
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. |
getTags(int index)
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. |
getTagsBytes(int 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. |
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;
Returns | |
---|---|
Type | Description |
int |
The count of tags. |
getTagsList()
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;
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the tags. |
getTuningMetadata()
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;
Returns | |
---|---|
Type | Description |
QaQuestion.TuningMetadata |
The tuningMetadata. |
getTuningMetadataBuilder()
public QaQuestion.TuningMetadata.Builder getTuningMetadataBuilder()
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 |
QaQuestion.TuningMetadata.Builder |
getTuningMetadataOrBuilder()
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;
Returns | |
---|---|
Type | Description |
QaQuestion.TuningMetadataOrBuilder |
getUpdateTime()
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. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
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 |
Builder |
getUpdateTimeOrBuilder()
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];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
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];
Returns | |
---|---|
Type | Description |
boolean |
Whether the createTime field is set. |
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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the metrics field is set. |
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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the tuningMetadata field is set. |
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];
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public QaQuestion.Builder mergeCreateTime(Timestamp value)
Output only. The time at which this question was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
mergeFrom(QaQuestion other)
public QaQuestion.Builder mergeFrom(QaQuestion other)
Parameter | |
---|---|
Name | Description |
other |
QaQuestion |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public QaQuestion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public QaQuestion.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
mergeMetrics(QaQuestion.Metrics value)
public QaQuestion.Builder mergeMetrics(QaQuestion.Metrics value)
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;
Parameter | |
---|---|
Name | Description |
value |
QaQuestion.Metrics |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
mergeTuningMetadata(QaQuestion.TuningMetadata value)
public QaQuestion.Builder mergeTuningMetadata(QaQuestion.TuningMetadata value)
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;
Parameter | |
---|---|
Name | Description |
value |
QaQuestion.TuningMetadata |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QaQuestion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
mergeUpdateTime(Timestamp value)
public QaQuestion.Builder mergeUpdateTime(Timestamp value)
Output only. The most recent time at which the question was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
removeAnswerChoices(int index)
public QaQuestion.Builder removeAnswerChoices(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 |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setAbbreviation(String value)
public QaQuestion.Builder setAbbreviation(String value)
Short, descriptive string, used in the UI where it's not practical to display the full question body. E.g., "Greeting".
string abbreviation = 2;
Parameter | |
---|---|
Name | Description |
value |
String The abbreviation to set. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
setAbbreviationBytes(ByteString value)
public QaQuestion.Builder setAbbreviationBytes(ByteString value)
Short, descriptive string, used in the UI where it's not practical to display the full question body. E.g., "Greeting".
string abbreviation = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for abbreviation to set. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
setAnswerChoices(int index, QaQuestion.AnswerChoice value)
public QaQuestion.Builder setAnswerChoices(int index, QaQuestion.AnswerChoice value)
A list of valid answers to the question, which the LLM must choose from.
repeated .google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice answer_choices = 6;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
QaQuestion.AnswerChoice |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setAnswerChoices(int index, QaQuestion.AnswerChoice.Builder builderForValue)
public QaQuestion.Builder setAnswerChoices(int index, QaQuestion.AnswerChoice.Builder builderForValue)
A list of valid answers to the question, which the LLM must choose from.
repeated .google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice answer_choices = 6;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
QaQuestion.AnswerChoice.Builder |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setAnswerInstructions(String value)
public QaQuestion.Builder setAnswerInstructions(String value)
Instructions describing how to determine the answer.
string answer_instructions = 9;
Parameter | |
---|---|
Name | Description |
value |
String The answerInstructions to set. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
setAnswerInstructionsBytes(ByteString value)
public QaQuestion.Builder setAnswerInstructionsBytes(ByteString value)
Instructions describing how to determine the answer.
string answer_instructions = 9;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for answerInstructions to set. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
setCreateTime(Timestamp value)
public QaQuestion.Builder setCreateTime(Timestamp value)
Output only. The time at which this question was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public QaQuestion.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time at which this question was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public QaQuestion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setMetrics(QaQuestion.Metrics value)
public QaQuestion.Builder setMetrics(QaQuestion.Metrics value)
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;
Parameter | |
---|---|
Name | Description |
value |
QaQuestion.Metrics |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setMetrics(QaQuestion.Metrics.Builder builderForValue)
public QaQuestion.Builder setMetrics(QaQuestion.Metrics.Builder builderForValue)
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;
Parameter | |
---|---|
Name | Description |
builderForValue |
QaQuestion.Metrics.Builder |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setName(String value)
public QaQuestion.Builder setName(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public QaQuestion.Builder setNameBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
setOrder(int value)
public QaQuestion.Builder setOrder(int value)
Defines the order of the question within its parent scorecard revision.
int32 order = 8;
Parameter | |
---|---|
Name | Description |
value |
int The order to set. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
setQuestionBody(String value)
public QaQuestion.Builder setQuestionBody(String value)
Question text. E.g., "Did the agent greet the customer?"
string question_body = 5;
Parameter | |
---|---|
Name | Description |
value |
String The questionBody to set. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
setQuestionBodyBytes(ByteString value)
public QaQuestion.Builder setQuestionBodyBytes(ByteString value)
Question text. E.g., "Did the agent greet the customer?"
string question_body = 5;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for questionBody to set. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QaQuestion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setTags(int index, String value)
public QaQuestion.Builder setTags(int index, String value)
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;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The tags to set. |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
This builder for chaining. |
setTuningMetadata(QaQuestion.TuningMetadata value)
public QaQuestion.Builder setTuningMetadata(QaQuestion.TuningMetadata value)
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;
Parameter | |
---|---|
Name | Description |
value |
QaQuestion.TuningMetadata |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setTuningMetadata(QaQuestion.TuningMetadata.Builder builderForValue)
public QaQuestion.Builder setTuningMetadata(QaQuestion.TuningMetadata.Builder builderForValue)
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;
Parameter | |
---|---|
Name | Description |
builderForValue |
QaQuestion.TuningMetadata.Builder |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final QaQuestion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setUpdateTime(Timestamp value)
public QaQuestion.Builder setUpdateTime(Timestamp value)
Output only. The most recent time at which the question was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public QaQuestion.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The most recent time at which the question was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
QaQuestion.Builder |