Class AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame
public sealed class AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame : IMessage<AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame>, IEquatable<AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame>, IDeepCloneable<AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame>, IBufferMessage, IMessage
- Inheritance
-
AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame
- Implements
-
IBufferMessageIMessage
- Inherited Members
Constructors
AudioFrame()
public AudioFrame()
AudioFrame(AudioFrame)
public AudioFrame(AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame other)
Parameters
Fields
DataFieldNumber
Field number for the "data" field.
public const int DataFieldNumber = 1
Field Value
NumChannelsFieldNumber
Field number for the "num_channels" field.
public const int NumChannelsFieldNumber = 3
Field Value
SampleRateFieldNumber
Field number for the "sample_rate" field.
public const int SampleRateFieldNumber = 2
Field Value
SamplesPerChannelFieldNumber
Field number for the "samples_per_channel" field.
public const int SamplesPerChannelFieldNumber = 4
Field Value
Properties
Data
public ByteString Data { get; set; }
Property Value
- ByteString
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
NumChannels
public uint NumChannels { get; set; }
Property Value
Parser
public static MessageParser<AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame> Parser { get; }
Property Value
- MessageParser<AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame>
SampleRate
public uint SampleRate { get; set; }
Property Value
SamplesPerChannel
public uint SamplesPerChannel { 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.
Clone()
Creates a deep clone of this object.
public AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame Clone()
Returns
- AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame
A deep clone of this object.
Equals(AudioFrame)
public bool Equals(AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame other)
Parameters
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(AudioFrame)
Merges the given message into this one.
public void MergeFrom(AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame other)
Parameters
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.