Represents an AnswerValue.
Package
@google-cloud/contact-center-insightsConstructors
(constructor)(properties)
constructor(properties?: google.cloud.contactcenterinsights.v1.QaAnswer.IAnswerValue);
Constructs a new AnswerValue.
Parameter | |
---|---|
Name | Description |
properties |
IAnswerValue
Properties to set |
Properties
_normalizedScore
public _normalizedScore?: "normalizedScore";
AnswerValue _normalizedScore.
_potentialScore
public _potentialScore?: "potentialScore";
AnswerValue _potentialScore.
_score
public _score?: "score";
AnswerValue _score.
boolValue
public boolValue?: (boolean|null);
AnswerValue boolValue.
key
public key: string;
AnswerValue key.
naValue
public naValue?: (boolean|null);
AnswerValue naValue.
normalizedScore
public normalizedScore?: (number|null);
AnswerValue normalizedScore.
numValue
public numValue?: (number|null);
AnswerValue numValue.
potentialScore
public potentialScore?: (number|null);
AnswerValue potentialScore.
score
public score?: (number|null);
AnswerValue score.
strValue
public strValue?: (string|null);
AnswerValue strValue.
value
public value?: ("strValue"|"numValue"|"boolValue"|"naValue");
AnswerValue value.
Methods
create(properties)
public static create(properties?: google.cloud.contactcenterinsights.v1.QaAnswer.IAnswerValue): google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue;
Creates a new AnswerValue instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IAnswerValue
Properties to set |
Returns | |
---|---|
Type | Description |
AnswerValue |
AnswerValue instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue;
Decodes an AnswerValue message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
AnswerValue |
AnswerValue |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue;
Decodes an AnswerValue message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
AnswerValue |
AnswerValue |
encode(message, writer)
public static encode(message: google.cloud.contactcenterinsights.v1.QaAnswer.IAnswerValue, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified AnswerValue message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IAnswerValue
AnswerValue message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.contactcenterinsights.v1.QaAnswer.IAnswerValue, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified AnswerValue message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IAnswerValue
AnswerValue message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue;
Creates an AnswerValue message from a plain object. Also converts values to their respective internal types.
Parameter | |
---|---|
Name | Description |
object |
{ [k: string]: any }
Plain object |
Returns | |
---|---|
Type | Description |
AnswerValue |
AnswerValue |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for AnswerValue
Parameter | |
---|---|
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns | |
---|---|
Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this AnswerValue to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from an AnswerValue message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
AnswerValue
AnswerValue |
options |
$protobuf.IConversionOptions
Conversion options |
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies an AnswerValue message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|