Class protos.google.cloud.contactcenterinsights.v1.Conversation (3.1.0)

Represents a Conversation.

Package

@google-cloud/contact-center-insights

Constructors

(constructor)(properties)

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

Constructs a new Conversation.

Parameter
NameDescription
properties IConversation

Properties to set

Properties

agentId

public agentId: string;

Conversation agentId.

callMetadata

public callMetadata?: (google.cloud.contactcenterinsights.v1.Conversation.ICallMetadata|null);

Conversation callMetadata.

createTime

public createTime?: (google.protobuf.ITimestamp|null);

Conversation createTime.

dataSource

public dataSource?: (google.cloud.contactcenterinsights.v1.IConversationDataSource|null);

Conversation dataSource.

dialogflowIntents

public dialogflowIntents: { [k: string]: google.cloud.contactcenterinsights.v1.IDialogflowIntent };

Conversation dialogflowIntents.

duration

public duration?: (google.protobuf.IDuration|null);

Conversation duration.

expiration

public expiration?: ("expireTime"|"ttl");

Conversation expiration.

expireTime

public expireTime?: (google.protobuf.ITimestamp|null);

Conversation expireTime.

labels

public labels: { [k: string]: string };

Conversation labels.

languageCode

public languageCode: string;

Conversation languageCode.

latestAnalysis

public latestAnalysis?: (google.cloud.contactcenterinsights.v1.IAnalysis|null);

Conversation latestAnalysis.

latestSummary

public latestSummary?: (google.cloud.contactcenterinsights.v1.IConversationSummarizationSuggestionData|null);

Conversation latestSummary.

medium

public medium: (google.cloud.contactcenterinsights.v1.Conversation.Medium|keyof typeof google.cloud.contactcenterinsights.v1.Conversation.Medium);

Conversation medium.

metadata

public metadata?: "callMetadata";

Conversation metadata.

name

public name: string;

Conversation name.

obfuscatedUserId

public obfuscatedUserId: string;

Conversation obfuscatedUserId.

runtimeAnnotations

public runtimeAnnotations: google.cloud.contactcenterinsights.v1.IRuntimeAnnotation[];

Conversation runtimeAnnotations.

startTime

public startTime?: (google.protobuf.ITimestamp|null);

Conversation startTime.

transcript

public transcript?: (google.cloud.contactcenterinsights.v1.Conversation.ITranscript|null);

Conversation transcript.

ttl

public ttl?: (google.protobuf.IDuration|null);

Conversation ttl.

turnCount

public turnCount: number;

Conversation turnCount.

updateTime

public updateTime?: (google.protobuf.ITimestamp|null);

Conversation updateTime.

Methods

create(properties)

public static create(properties?: google.cloud.contactcenterinsights.v1.IConversation): google.cloud.contactcenterinsights.v1.Conversation;

Creates a new Conversation instance using the specified properties.

Parameter
NameDescription
properties IConversation

Properties to set

Returns
TypeDescription
Conversation

Conversation instance

decode(reader, length)

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

Decodes a Conversation message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
Conversation

Conversation

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
Conversation

Conversation

encode(message, writer)

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

Encodes the specified Conversation message. Does not implicitly messages.

Parameters
NameDescription
message IConversation

Conversation 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.IConversation, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IConversation

Conversation 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.Conversation;

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

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

Plain object

Returns
TypeDescription
Conversation

Conversation

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for Conversation

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 Conversation to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message Conversation

Conversation

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 Conversation 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