Class protos.google.cloud.contactcenterinsights.v1.CallAnnotation (2.6.0)

Represents a CallAnnotation.

Package

@google-cloud/contact-center-insights

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.contactcenterinsights.v1.ICallAnnotation);

Constructs a new CallAnnotation.

Parameter
NameDescription
properties ICallAnnotation

Properties to set

Properties

annotationEndBoundary

public annotationEndBoundary?: (google.cloud.contactcenterinsights.v1.IAnnotationBoundary|null);

CallAnnotation annotationEndBoundary.

annotationStartBoundary

public annotationStartBoundary?: (google.cloud.contactcenterinsights.v1.IAnnotationBoundary|null);

CallAnnotation annotationStartBoundary.

channelTag

public channelTag: number;

CallAnnotation channelTag.

data

public data?: ("interruptionData"|"sentimentData"|"silenceData"|"holdData"|"entityMentionData"|"intentMatchData"|"phraseMatchData"|"issueMatchData");

CallAnnotation data.

entityMentionData

public entityMentionData?: (google.cloud.contactcenterinsights.v1.IEntityMentionData|null);

CallAnnotation entityMentionData.

holdData

public holdData?: (google.cloud.contactcenterinsights.v1.IHoldData|null);

CallAnnotation holdData.

intentMatchData

public intentMatchData?: (google.cloud.contactcenterinsights.v1.IIntentMatchData|null);

CallAnnotation intentMatchData.

interruptionData

public interruptionData?: (google.cloud.contactcenterinsights.v1.IInterruptionData|null);

CallAnnotation interruptionData.

issueMatchData

public issueMatchData?: (google.cloud.contactcenterinsights.v1.IIssueMatchData|null);

CallAnnotation issueMatchData.

phraseMatchData

public phraseMatchData?: (google.cloud.contactcenterinsights.v1.IPhraseMatchData|null);

CallAnnotation phraseMatchData.

sentimentData

public sentimentData?: (google.cloud.contactcenterinsights.v1.ISentimentData|null);

CallAnnotation sentimentData.

silenceData

public silenceData?: (google.cloud.contactcenterinsights.v1.ISilenceData|null);

CallAnnotation silenceData.

Methods

create(properties)

public static create(properties?: google.cloud.contactcenterinsights.v1.ICallAnnotation): google.cloud.contactcenterinsights.v1.CallAnnotation;

Creates a new CallAnnotation instance using the specified properties.

Parameter
NameDescription
properties ICallAnnotation

Properties to set

Returns
TypeDescription
google.cloud.contactcenterinsights.v1.CallAnnotation

CallAnnotation instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.contactcenterinsights.v1.CallAnnotation;

Decodes a CallAnnotation message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.contactcenterinsights.v1.CallAnnotation

CallAnnotation

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.contactcenterinsights.v1.CallAnnotation;

Decodes a CallAnnotation message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.contactcenterinsights.v1.CallAnnotation

CallAnnotation

encode(message, writer)

public static encode(message: google.cloud.contactcenterinsights.v1.ICallAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified CallAnnotation message. Does not implicitly messages.

Parameters
NameDescription
message ICallAnnotation

CallAnnotation message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.contactcenterinsights.v1.ICallAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified CallAnnotation message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message ICallAnnotation

CallAnnotation message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.contactcenterinsights.v1.CallAnnotation;

Creates a CallAnnotation message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.contactcenterinsights.v1.CallAnnotation

CallAnnotation

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for CallAnnotation

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this CallAnnotation to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.contactcenterinsights.v1.CallAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a CallAnnotation message. Also converts values to other types if specified.

Parameters
NameDescription
message google.cloud.contactcenterinsights.v1.CallAnnotation

CallAnnotation

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a CallAnnotation message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not