Recording

enfonica.voice.v1beta1. Recording

Represents a Recording.

Constructor

new Recording(propertiesopt)

Constructs a new Recording.

Parameters:
Name Type Attributes Description
properties enfonica.voice.v1beta1.IRecording <optional>

Properties to set

Implements:
  • IRecording

Members

ErrorCode

ErrorCode enum.

Properties:
Name Type Description
ERROR_CODE_UNSPECIFIED number

ERROR_CODE_UNSPECIFIED value

TIMEOUT number

TIMEOUT value

INTERNAL_ERROR number

INTERNAL_ERROR value

Source

Source enum.

Properties:
Name Type Description
SOURCE_UNSPECIFIED number

SOURCE_UNSPECIFIED value

RECORD_ACTION number

RECORD_ACTION value

CALL_RECORDING number

CALL_RECORDING value

State

State enum.

Properties:
Name Type Description
STATE_UNSPECIFIED number

STATE_UNSPECIFIED value

PENDING number

PENDING value

SUCCEEDED number

SUCCEEDED value

EMPTY number

EMPTY value

FAILED number

FAILED value

audio

Recording audio.

channelCount

Recording channelCount.

createTime

Recording createTime.

duration

Recording duration.

errorCode

Recording errorCode.

name

Recording name.

postProcessing

Recording postProcessing.

readyUri

Recording readyUri.

source

Recording source.

startTime

Recording startTime.

state

Recording state.

Methods

(static) create(propertiesopt) → {enfonica.voice.v1beta1.Recording}

Creates a new Recording instance using the specified properties.

Parameters:
Name Type Attributes Description
properties enfonica.voice.v1beta1.IRecording <optional>

Properties to set

Returns:
Type Description
enfonica.voice.v1beta1.Recording

Recording instance

(static) decode(reader, lengthopt) → {enfonica.voice.v1beta1.Recording}

Decodes a Recording message from the specified reader or buffer.

Parameters:
Name Type Attributes Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

length number <optional>

Message length if known beforehand

Returns:
Type Description
enfonica.voice.v1beta1.Recording

Recording

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) decodeDelimited(reader) → {enfonica.voice.v1beta1.Recording}

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

Parameters:
Name Type Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

Returns:
Type Description
enfonica.voice.v1beta1.Recording

Recording

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) encode(message, writeropt) → {$protobuf.Writer}

Encodes the specified Recording message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message enfonica.voice.v1beta1.IRecording

Recording message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}

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

Parameters:
Name Type Attributes Description
message enfonica.voice.v1beta1.IRecording

Recording message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) fromObject(object) → {enfonica.voice.v1beta1.Recording}

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

Parameters:
Name Type Description
object Object.<string, *>

Plain object

Returns:
Type Description
enfonica.voice.v1beta1.Recording

Recording

(static) toObject(message, optionsopt) → {Object.<string, *>}

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

Parameters:
Name Type Attributes Description
message enfonica.voice.v1beta1.Recording

Recording

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

(static) verify(message) → {string|null}

Verifies a Recording message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

Returns:
Type Description
string | null

null if valid, otherwise the reason why it is not

toJSON() → {Object.<string, *>}

Converts this Recording to JSON.

Returns:
Type Description
Object.<string, *>

JSON object