Class QaAnswer.AnswerSource.Builder (2.54.0)

public static final class QaAnswer.AnswerSource.Builder extends GeneratedMessageV3.Builder<QaAnswer.AnswerSource.Builder> implements QaAnswer.AnswerSourceOrBuilder

A question may have multiple answers from varying sources, one of which becomes the "main" answer above. AnswerSource represents each individual answer.

Protobuf type google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QaAnswer.AnswerSource build()
Returns
Type Description
QaAnswer.AnswerSource

buildPartial()

public QaAnswer.AnswerSource buildPartial()
Returns
Type Description
QaAnswer.AnswerSource

clear()

public QaAnswer.AnswerSource.Builder clear()
Returns
Type Description
QaAnswer.AnswerSource.Builder
Overrides

clearAnswerValue()

public QaAnswer.AnswerSource.Builder clearAnswerValue()

The answer value from this source.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;

Returns
Type Description
QaAnswer.AnswerSource.Builder

clearField(Descriptors.FieldDescriptor field)

public QaAnswer.AnswerSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QaAnswer.AnswerSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public QaAnswer.AnswerSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QaAnswer.AnswerSource.Builder
Overrides

clearSourceType()

public QaAnswer.AnswerSource.Builder clearSourceType()

What created the answer.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource.SourceType source_type = 1;

Returns
Type Description
QaAnswer.AnswerSource.Builder

This builder for chaining.

clone()

public QaAnswer.AnswerSource.Builder clone()
Returns
Type Description
QaAnswer.AnswerSource.Builder
Overrides

getAnswerValue()

public QaAnswer.AnswerValue getAnswerValue()

The answer value from this source.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;

Returns
Type Description
QaAnswer.AnswerValue

The answerValue.

getAnswerValueBuilder()

public QaAnswer.AnswerValue.Builder getAnswerValueBuilder()

The answer value from this source.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;

Returns
Type Description
QaAnswer.AnswerValue.Builder

getAnswerValueOrBuilder()

public QaAnswer.AnswerValueOrBuilder getAnswerValueOrBuilder()

The answer value from this source.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;

Returns
Type Description
QaAnswer.AnswerValueOrBuilder

getDefaultInstanceForType()

public QaAnswer.AnswerSource getDefaultInstanceForType()
Returns
Type Description
QaAnswer.AnswerSource

getDescriptorForType()

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

getSourceType()

public QaAnswer.AnswerSource.SourceType getSourceType()

What created the answer.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource.SourceType source_type = 1;

Returns
Type Description
QaAnswer.AnswerSource.SourceType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

What created the answer.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource.SourceType source_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for sourceType.

hasAnswerValue()

public boolean hasAnswerValue()

The answer value from this source.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;

Returns
Type Description
boolean

Whether the answerValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnswerValue(QaAnswer.AnswerValue value)

public QaAnswer.AnswerSource.Builder mergeAnswerValue(QaAnswer.AnswerValue value)

The answer value from this source.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;

Parameter
Name Description
value QaAnswer.AnswerValue
Returns
Type Description
QaAnswer.AnswerSource.Builder

mergeFrom(QaAnswer.AnswerSource other)

public QaAnswer.AnswerSource.Builder mergeFrom(QaAnswer.AnswerSource other)
Parameter
Name Description
other QaAnswer.AnswerSource
Returns
Type Description
QaAnswer.AnswerSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public QaAnswer.AnswerSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QaAnswer.AnswerSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QaAnswer.AnswerSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QaAnswer.AnswerSource.Builder
Overrides

setAnswerValue(QaAnswer.AnswerValue value)

public QaAnswer.AnswerSource.Builder setAnswerValue(QaAnswer.AnswerValue value)

The answer value from this source.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;

Parameter
Name Description
value QaAnswer.AnswerValue
Returns
Type Description
QaAnswer.AnswerSource.Builder

setAnswerValue(QaAnswer.AnswerValue.Builder builderForValue)

public QaAnswer.AnswerSource.Builder setAnswerValue(QaAnswer.AnswerValue.Builder builderForValue)

The answer value from this source.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;

Parameter
Name Description
builderForValue QaAnswer.AnswerValue.Builder
Returns
Type Description
QaAnswer.AnswerSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSourceType(QaAnswer.AnswerSource.SourceType value)

public QaAnswer.AnswerSource.Builder setSourceType(QaAnswer.AnswerSource.SourceType value)

What created the answer.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource.SourceType source_type = 1;

Parameter
Name Description
value QaAnswer.AnswerSource.SourceType

The sourceType to set.

Returns
Type Description
QaAnswer.AnswerSource.Builder

This builder for chaining.

setSourceTypeValue(int value)

public QaAnswer.AnswerSource.Builder setSourceTypeValue(int value)

What created the answer.

.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource.SourceType source_type = 1;

Parameter
Name Description
value int

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

Returns
Type Description
QaAnswer.AnswerSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QaAnswer.AnswerSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QaAnswer.AnswerSource.Builder
Overrides