Class protos.google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent

Represents a HumanAgentAssistantEvent.

Package

@google-cloud/dialogflow

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.dialogflow.v2beta1.IHumanAgentAssistantEvent);

Constructs a new HumanAgentAssistantEvent.

Parameter
NameDescription
properties IHumanAgentAssistantEvent

Properties to set

Properties

conversation

public conversation: string;

HumanAgentAssistantEvent conversation.

participant

public participant: string;

HumanAgentAssistantEvent participant.

suggestionResults

public suggestionResults: google.cloud.dialogflow.v2beta1.ISuggestionResult[];

HumanAgentAssistantEvent suggestionResults.

Methods

create(properties)

public static create(properties?: google.cloud.dialogflow.v2beta1.IHumanAgentAssistantEvent): google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent;

Creates a new HumanAgentAssistantEvent instance using the specified properties.

Parameter
NameDescription
properties IHumanAgentAssistantEvent

Properties to set

Returns
TypeDescription
google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent

HumanAgentAssistantEvent instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent;

Decodes a HumanAgentAssistantEvent 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.dialogflow.v2beta1.HumanAgentAssistantEvent

HumanAgentAssistantEvent

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent;

Decodes a HumanAgentAssistantEvent 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.dialogflow.v2beta1.HumanAgentAssistantEvent

HumanAgentAssistantEvent

encode(message, writer)

public static encode(message: google.cloud.dialogflow.v2beta1.IHumanAgentAssistantEvent, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified HumanAgentAssistantEvent message. Does not implicitly messages.

Parameters
NameDescription
message IHumanAgentAssistantEvent

HumanAgentAssistantEvent 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.dialogflow.v2beta1.IHumanAgentAssistantEvent, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IHumanAgentAssistantEvent

HumanAgentAssistantEvent 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.dialogflow.v2beta1.HumanAgentAssistantEvent;

Creates a HumanAgentAssistantEvent 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.dialogflow.v2beta1.HumanAgentAssistantEvent

HumanAgentAssistantEvent

toJSON()

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

Converts this HumanAgentAssistantEvent to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent

HumanAgentAssistantEvent

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