Class QaQuestion.TuningMetadata.Builder (2.55.0)

public static final class QaQuestion.TuningMetadata.Builder extends GeneratedMessageV3.Builder<QaQuestion.TuningMetadata.Builder> implements QaQuestion.TuningMetadataOrBuilder

Metadata about the tuning operation for the question. Will only be set if a scorecard containing this question has been tuned.

Protobuf type google.cloud.contactcenterinsights.v1.QaQuestion.TuningMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDatasetValidationWarnings(Iterable<? extends DatasetValidationWarning> values)

public QaQuestion.TuningMetadata.Builder addAllDatasetValidationWarnings(Iterable<? extends DatasetValidationWarning> values)

A list of any applicable data validation warnings about the question's feedback labels.

repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.contactcenterinsights.v1.DatasetValidationWarning>

The datasetValidationWarnings to add.

Returns
Type Description
QaQuestion.TuningMetadata.Builder

This builder for chaining.

addAllDatasetValidationWarningsValue(Iterable<Integer> values)

public QaQuestion.TuningMetadata.Builder addAllDatasetValidationWarningsValue(Iterable<Integer> values)

A list of any applicable data validation warnings about the question's feedback labels.

repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for datasetValidationWarnings to add.

Returns
Type Description
QaQuestion.TuningMetadata.Builder

This builder for chaining.

addDatasetValidationWarnings(DatasetValidationWarning value)

public QaQuestion.TuningMetadata.Builder addDatasetValidationWarnings(DatasetValidationWarning value)

A list of any applicable data validation warnings about the question's feedback labels.

repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;

Parameter
Name Description
value DatasetValidationWarning

The datasetValidationWarnings to add.

Returns
Type Description
QaQuestion.TuningMetadata.Builder

This builder for chaining.

addDatasetValidationWarningsValue(int value)

public QaQuestion.TuningMetadata.Builder addDatasetValidationWarningsValue(int value)

A list of any applicable data validation warnings about the question's feedback labels.

repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for datasetValidationWarnings to add.

Returns
Type Description
QaQuestion.TuningMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QaQuestion.TuningMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QaQuestion.TuningMetadata.Builder
Overrides

build()

public QaQuestion.TuningMetadata build()
Returns
Type Description
QaQuestion.TuningMetadata

buildPartial()

public QaQuestion.TuningMetadata buildPartial()
Returns
Type Description
QaQuestion.TuningMetadata

clear()

public QaQuestion.TuningMetadata.Builder clear()
Returns
Type Description
QaQuestion.TuningMetadata.Builder
Overrides

clearDatasetValidationWarnings()

public QaQuestion.TuningMetadata.Builder clearDatasetValidationWarnings()

A list of any applicable data validation warnings about the question's feedback labels.

repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;

Returns
Type Description
QaQuestion.TuningMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public QaQuestion.TuningMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QaQuestion.TuningMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public QaQuestion.TuningMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QaQuestion.TuningMetadata.Builder
Overrides

clearTotalValidLabelCount()

public QaQuestion.TuningMetadata.Builder clearTotalValidLabelCount()

Total number of valid labels provided for the question at the time of tuining.

int64 total_valid_label_count = 1;

Returns
Type Description
QaQuestion.TuningMetadata.Builder

This builder for chaining.

clearTuningError()

public QaQuestion.TuningMetadata.Builder clearTuningError()

Error status of the tuning operation for the question. Will only be set if the tuning operation failed.

string tuning_error = 3;

Returns
Type Description
QaQuestion.TuningMetadata.Builder

This builder for chaining.

clone()

public QaQuestion.TuningMetadata.Builder clone()
Returns
Type Description
QaQuestion.TuningMetadata.Builder
Overrides

getDatasetValidationWarnings(int index)

public DatasetValidationWarning getDatasetValidationWarnings(int index)

A list of any applicable data validation warnings about the question's feedback labels.

repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
DatasetValidationWarning

The datasetValidationWarnings at the given index.

getDatasetValidationWarningsCount()

public int getDatasetValidationWarningsCount()

A list of any applicable data validation warnings about the question's feedback labels.

repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;

Returns
Type Description
int

The count of datasetValidationWarnings.

getDatasetValidationWarningsList()

public List<DatasetValidationWarning> getDatasetValidationWarningsList()

A list of any applicable data validation warnings about the question's feedback labels.

repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;

Returns
Type Description
List<DatasetValidationWarning>

A list containing the datasetValidationWarnings.

getDatasetValidationWarningsValue(int index)

public int getDatasetValidationWarningsValue(int index)

A list of any applicable data validation warnings about the question's feedback labels.

repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of datasetValidationWarnings at the given index.

getDatasetValidationWarningsValueList()

public List<Integer> getDatasetValidationWarningsValueList()

A list of any applicable data validation warnings about the question's feedback labels.

repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for datasetValidationWarnings.

getDefaultInstanceForType()

public QaQuestion.TuningMetadata getDefaultInstanceForType()
Returns
Type Description
QaQuestion.TuningMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTotalValidLabelCount()

public long getTotalValidLabelCount()

Total number of valid labels provided for the question at the time of tuining.

int64 total_valid_label_count = 1;

Returns
Type Description
long

The totalValidLabelCount.

getTuningError()

public String getTuningError()

Error status of the tuning operation for the question. Will only be set if the tuning operation failed.

string tuning_error = 3;

Returns
Type Description
String

The tuningError.

getTuningErrorBytes()

public ByteString getTuningErrorBytes()

Error status of the tuning operation for the question. Will only be set if the tuning operation failed.

string tuning_error = 3;

Returns
Type Description
ByteString

The bytes for tuningError.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QaQuestion.TuningMetadata other)

public QaQuestion.TuningMetadata.Builder mergeFrom(QaQuestion.TuningMetadata other)
Parameter
Name Description
other QaQuestion.TuningMetadata
Returns
Type Description
QaQuestion.TuningMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QaQuestion.TuningMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QaQuestion.TuningMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QaQuestion.TuningMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QaQuestion.TuningMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QaQuestion.TuningMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QaQuestion.TuningMetadata.Builder
Overrides

setDatasetValidationWarnings(int index, DatasetValidationWarning value)

public QaQuestion.TuningMetadata.Builder setDatasetValidationWarnings(int index, DatasetValidationWarning value)

A list of any applicable data validation warnings about the question's feedback labels.

repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;

Parameters
Name Description
index int

The index to set the value at.

value DatasetValidationWarning

The datasetValidationWarnings to set.

Returns
Type Description
QaQuestion.TuningMetadata.Builder

This builder for chaining.

setDatasetValidationWarningsValue(int index, int value)

public QaQuestion.TuningMetadata.Builder setDatasetValidationWarningsValue(int index, int value)

A list of any applicable data validation warnings about the question's feedback labels.

repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for datasetValidationWarnings to set.

Returns
Type Description
QaQuestion.TuningMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public QaQuestion.TuningMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QaQuestion.TuningMetadata.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public QaQuestion.TuningMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
QaQuestion.TuningMetadata.Builder
Overrides

setTotalValidLabelCount(long value)

public QaQuestion.TuningMetadata.Builder setTotalValidLabelCount(long value)

Total number of valid labels provided for the question at the time of tuining.

int64 total_valid_label_count = 1;

Parameter
Name Description
value long

The totalValidLabelCount to set.

Returns
Type Description
QaQuestion.TuningMetadata.Builder

This builder for chaining.

setTuningError(String value)

public QaQuestion.TuningMetadata.Builder setTuningError(String value)

Error status of the tuning operation for the question. Will only be set if the tuning operation failed.

string tuning_error = 3;

Parameter
Name Description
value String

The tuningError to set.

Returns
Type Description
QaQuestion.TuningMetadata.Builder

This builder for chaining.

setTuningErrorBytes(ByteString value)

public QaQuestion.TuningMetadata.Builder setTuningErrorBytes(ByteString value)

Error status of the tuning operation for the question. Will only be set if the tuning operation failed.

string tuning_error = 3;

Parameter
Name Description
value ByteString

The bytes for tuningError to set.

Returns
Type Description
QaQuestion.TuningMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QaQuestion.TuningMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QaQuestion.TuningMetadata.Builder
Overrides