Class protos.google.cloud.ces.v1beta.StreamChatAiAssistantResponse (0.12.0)

Represents a StreamChatAiAssistantResponse.

Implements

Package

@google-cloud/ces

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.ces.v1beta.IStreamChatAiAssistantResponse);

Constructs a new StreamChatAiAssistantResponse.

Parameter
Name Description
properties IStreamChatAiAssistantResponse

Properties to set

Properties

artifactChunk

public artifactChunk?: (google.cloud.ces.v1beta.IArtifactChunk|null);

StreamChatAiAssistantResponse artifactChunk.

confirmationRequest

public confirmationRequest?: (google.cloud.ces.v1beta.IAssistantConfirmationRequest|null);

StreamChatAiAssistantResponse confirmationRequest.

event

public event?: ("textChunk"|"status"|"thoughtChunk"|"toolCall"|"toolResponse"|"artifactChunk"|"optionQuestionsChunk"|"confirmationRequest"|"sessionCheckpoint"|"resumeSnapshot"|"handoff"|"turnCompleted");

StreamChatAiAssistantResponse event.

eventId

public eventId: string;

StreamChatAiAssistantResponse eventId.

eventTime

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

StreamChatAiAssistantResponse eventTime.

handoff

public handoff?: (google.cloud.ces.v1beta.ITurnHandoffEvent|null);

StreamChatAiAssistantResponse handoff.

optionQuestionsChunk

public optionQuestionsChunk?: (google.cloud.ces.v1beta.IOptionQuestionsChunk|null);

StreamChatAiAssistantResponse optionQuestionsChunk.

resumeSnapshot

public resumeSnapshot?: (google.cloud.ces.v1beta.ITurnResumeSnapshot|null);

StreamChatAiAssistantResponse resumeSnapshot.

sequenceNumber

public sequenceNumber: (number|Long|string);

StreamChatAiAssistantResponse sequenceNumber.

sessionCheckpoint

public sessionCheckpoint?: (google.cloud.ces.v1beta.ISessionCheckpoint|null);

StreamChatAiAssistantResponse sessionCheckpoint.

status

public status?: (google.rpc.IStatus|null);

StreamChatAiAssistantResponse status.

textChunk

public textChunk?: (string|null);

StreamChatAiAssistantResponse textChunk.

thoughtChunk

public thoughtChunk?: (string|null);

StreamChatAiAssistantResponse thoughtChunk.

toolCall

public toolCall?: (google.cloud.ces.v1beta.IToolCall|null);

StreamChatAiAssistantResponse toolCall.

toolResponse

public toolResponse?: (google.cloud.ces.v1beta.IToolResponse|null);

StreamChatAiAssistantResponse toolResponse.

turnCompleted

public turnCompleted?: (google.cloud.ces.v1beta.ITurnCompletedEvent|null);

StreamChatAiAssistantResponse turnCompleted.

turnInProgress

public turnInProgress: boolean;

StreamChatAiAssistantResponse turnInProgress.

turnMetadata

public turnMetadata?: (google.cloud.ces.v1beta.ITurnMetadata|null);

StreamChatAiAssistantResponse turnMetadata.

uiEvent

public uiEvent?: (google.cloud.ces.v1beta.IUiEvent|null);

StreamChatAiAssistantResponse uiEvent.

Methods

create(properties)

public static create(properties?: google.cloud.ces.v1beta.IStreamChatAiAssistantResponse): google.cloud.ces.v1beta.StreamChatAiAssistantResponse;

Creates a new StreamChatAiAssistantResponse instance using the specified properties.

Parameter
Name Description
properties IStreamChatAiAssistantResponse

Properties to set

Returns
Type Description
StreamChatAiAssistantResponse

StreamChatAiAssistantResponse instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.ces.v1beta.StreamChatAiAssistantResponse;

Decodes a StreamChatAiAssistantResponse 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
StreamChatAiAssistantResponse

StreamChatAiAssistantResponse

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.ces.v1beta.StreamChatAiAssistantResponse;

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
StreamChatAiAssistantResponse

StreamChatAiAssistantResponse

encode(message, writer)

public static encode(message: google.cloud.ces.v1beta.IStreamChatAiAssistantResponse, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified StreamChatAiAssistantResponse message. Does not implicitly messages.

Parameters
Name Description
message IStreamChatAiAssistantResponse

StreamChatAiAssistantResponse 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.ces.v1beta.IStreamChatAiAssistantResponse, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IStreamChatAiAssistantResponse

StreamChatAiAssistantResponse 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.ces.v1beta.StreamChatAiAssistantResponse;

Creates a StreamChatAiAssistantResponse 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
StreamChatAiAssistantResponse

StreamChatAiAssistantResponse

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for StreamChatAiAssistantResponse

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

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message StreamChatAiAssistantResponse

StreamChatAiAssistantResponse

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 a StreamChatAiAssistantResponse message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not