Class TextMessageResponse
Response to a text message request, multiple responses may be sent for a single request until it is complete.
public sealed class TextMessageResponse : IMessage<TextMessageResponse>, IEquatable<TextMessageResponse>, IDeepCloneable<TextMessageResponse>, IBufferMessage, IMessage
- Inheritance
-
TextMessageResponse
- Implements
-
IMessage<TextMessageResponse>IDeepCloneable<TextMessageResponse>IBufferMessageIMessage
- Inherited Members
Constructors
TextMessageResponse()
public TextMessageResponse()
TextMessageResponse(TextMessageResponse)
public TextMessageResponse(TextMessageResponse other)
Parameters
otherTextMessageResponse
Fields
AgentHandoffFieldNumber
Field number for the "agent_handoff" field.
public const int AgentHandoffFieldNumber = 6
Field Value
CompleteFieldNumber
Field number for the "complete" field.
public const int CompleteFieldNumber = 7
Field Value
FunctionCallFieldNumber
Field number for the "function_call" field.
public const int FunctionCallFieldNumber = 4
Field Value
FunctionCallOutputFieldNumber
Field number for the "function_call_output" field.
public const int FunctionCallOutputFieldNumber = 5
Field Value
MessageFieldNumber
Field number for the "message" field.
public const int MessageFieldNumber = 3
Field Value
MessageIdFieldNumber
Field number for the "message_id" field.
public const int MessageIdFieldNumber = 1
Field Value
SessionIdFieldNumber
Field number for the "session_id" field.
public const int SessionIdFieldNumber = 2
Field Value
Properties
AgentHandoff
public AgentHandoff AgentHandoff { get; set; }
Property Value
Complete
public TextMessageComplete Complete { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
EventCase
public TextMessageResponse.EventOneofCase EventCase { get; }
Property Value
FunctionCall
public FunctionCall FunctionCall { get; set; }
Property Value
FunctionCallOutput
public FunctionCallOutput FunctionCallOutput { get; set; }
Property Value
Message
public ChatMessage Message { get; set; }
Property Value
MessageId
public string MessageId { get; set; }
Property Value
Parser
public static MessageParser<TextMessageResponse> Parser { get; }
Property Value
- MessageParser<TextMessageResponse>
SessionId
public string SessionId { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearEvent()
public void ClearEvent()
Clone()
Creates a deep clone of this object.
public TextMessageResponse Clone()
Returns
- TextMessageResponse
A deep clone of this object.
Equals(TextMessageResponse)
public bool Equals(TextMessageResponse other)
Parameters
otherTextMessageResponse
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(TextMessageResponse)
Merges the given message into this one.
public void MergeFrom(TextMessageResponse other)
Parameters
otherTextMessageResponse
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.