@observertc/monitor-schemas
Version:
ObserveRTC Library for Schemas
1,309 lines (1,115 loc) • 193 kB
text/typescript
// @generated by protoc-gen-es v1.0.0 with parameter "target=ts"
// @generated from file ProtobufSamples.proto (package org.observertc.schemas.protobuf, syntax proto2)
/* eslint-disable */
// @ts-nocheck
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto2 } from "@bufbuild/protobuf";
/**
* @generated from message org.observertc.schemas.protobuf.Samples
*/
export class Samples extends Message<Samples> {
/**
* Samples taken from the client
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample clientSamples = 1;
*/
clientSamples: Samples_ClientSample[] = [];
/**
* Samples taken from an Sfu
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.SfuSample sfuSamples = 2;
*/
sfuSamples: Samples_SfuSample[] = [];
/**
* Samples taken from the TURN server
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.TurnSample turnSamples = 3;
*/
turnSamples: Samples_TurnSample[] = [];
/**
* Additional control flags indicate various operation has to be performed
*
* @generated from field: optional org.observertc.schemas.protobuf.Samples.Controls controls = 4;
*/
controls?: Samples_Controls;
constructor(data?: PartialMessage<Samples>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "clientSamples", kind: "message", T: Samples_ClientSample, repeated: true },
{ no: 2, name: "sfuSamples", kind: "message", T: Samples_SfuSample, repeated: true },
{ no: 3, name: "turnSamples", kind: "message", T: Samples_TurnSample, repeated: true },
{ no: 4, name: "controls", kind: "message", T: Samples_Controls, opt: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples {
return new Samples().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples {
return new Samples().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples {
return new Samples().fromJsonString(jsonString, options);
}
static equals(a: Samples | PlainMessage<Samples> | undefined, b: Samples | PlainMessage<Samples> | undefined): boolean {
return proto2.util.equals(Samples, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.Controls
*/
export class Samples_Controls extends Message<Samples_Controls> {
/**
* Holds a new claim to process
*
* @generated from field: optional string accessClaim = 1;
*/
accessClaim?: string;
/**
* Indicate that the server should close the connection
*
* @generated from field: optional bool close = 2;
*/
close?: boolean;
constructor(data?: PartialMessage<Samples_Controls>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples.Controls";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "accessClaim", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 2, name: "close", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples_Controls {
return new Samples_Controls().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples_Controls {
return new Samples_Controls().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples_Controls {
return new Samples_Controls().fromJsonString(jsonString, options);
}
static equals(a: Samples_Controls | PlainMessage<Samples_Controls> | undefined, b: Samples_Controls | PlainMessage<Samples_Controls> | undefined): boolean {
return proto2.util.equals(Samples_Controls, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.ClientSample
*/
export class Samples_ClientSample extends Message<Samples_ClientSample> {
/**
* List of certificates the client provided
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.Certificate certificates = 1;
*/
certificates: Samples_ClientSample_Certificate[] = [];
/**
* List of codec the client has
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.MediaCodecStats codecs = 2;
*/
codecs: Samples_ClientSample_MediaCodecStats[] = [];
/**
* User provided custom call events
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.CustomCallEvent customCallEvents = 3;
*/
customCallEvents: Samples_ClientSample_CustomCallEvent[] = [];
/**
* User provided custom call events
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.CustomObserverEvent customObserverEvents = 4;
*/
customObserverEvents: Samples_ClientSample_CustomObserverEvent[] = [];
/**
* Measurements about the data channels currently avaialble on peer connections
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.DataChannel dataChannels = 5;
*/
dataChannels: Samples_ClientSample_DataChannel[] = [];
/**
* The WebRTC app provided custom stats payload
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.ExtensionStat extensionStats = 6;
*/
extensionStats: Samples_ClientSample_ExtensionStat[] = [];
/**
* Candidate pair stats
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.IceCandidatePair iceCandidatePairs = 7;
*/
iceCandidatePairs: Samples_ClientSample_IceCandidatePair[] = [];
/**
* List of local ICE candidates
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.IceLocalCandidate iceLocalCandidates = 8;
*/
iceLocalCandidates: Samples_ClientSample_IceLocalCandidate[] = [];
/**
* List of remote ICE candidates
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.IceRemoteCandidate iceRemoteCandidates = 9;
*/
iceRemoteCandidates: Samples_ClientSample_IceRemoteCandidate[] = [];
/**
* The WebRTC app provided List of ICE server the client used.
*
* @generated from field: repeated string iceServers = 10;
*/
iceServers: string[] = [];
/**
* List of compound measurements related to inbound audio tracks
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.InboundAudioTrack inboundAudioTracks = 11;
*/
inboundAudioTracks: Samples_ClientSample_InboundAudioTrack[] = [];
/**
* List of compound measurements related to inbound video tracks
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.InboundVideoTrack inboundVideoTracks = 12;
*/
inboundVideoTracks: Samples_ClientSample_InboundVideoTrack[] = [];
/**
* The local part of the Signal Description Protocol to establish connections
*
* @generated from field: repeated string localSDPs = 13;
*/
localSDPs: string[] = [];
/**
* The WebRTC app provided List of the media constraints the client has.
*
* @generated from field: repeated string mediaConstraints = 14;
*/
mediaConstraints: string[] = [];
/**
* The WebRTC app provided List of the media devices the client has.
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.MediaDevice mediaDevices = 15;
*/
mediaDevices: Samples_ClientSample_MediaDevice[] = [];
/**
* WebRTC App provided information related to the operation system the client uses.
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.MediaSourceStat mediaSources = 16;
*/
mediaSources: Samples_ClientSample_MediaSourceStat[] = [];
/**
* List of compound measurements related to outbound audio tracks
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.OutboundAudioTrack outboundAudioTracks = 17;
*/
outboundAudioTracks: Samples_ClientSample_OutboundAudioTrack[] = [];
/**
* List of compound measurements related to outbound video tracks
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.OutboundVideoTrack outboundVideoTracks = 18;
*/
outboundVideoTracks: Samples_ClientSample_OutboundVideoTrack[] = [];
/**
* Transport stats of Peer Connection
*
* @generated from field: repeated org.observertc.schemas.protobuf.Samples.ClientSample.PeerConnectionTransport pcTransports = 19;
*/
pcTransports: Samples_ClientSample_PeerConnectionTransport[] = [];
/**
* The WebRTC app provided List of user media errors the client has.
*
* @generated from field: repeated string userMediaErrors = 20;
*/
userMediaErrors: string[] = [];
/**
* Unique id of the client providing samples. Must be a valid UUID
*
* @generated from field: required string clientId = 21;
*/
clientId?: string;
/**
* The timestamp the sample is created in GMT
*
* @generated from field: required uint32 timestamp = 22;
*/
timestamp?: number;
/**
* WebRTC App provided information related to the browser the client uses.
*
* @generated from field: optional org.observertc.schemas.protobuf.Samples.ClientSample.Browser browser = 23;
*/
browser?: Samples_ClientSample_Browser;
/**
* If it is provided the server uses the given id to match clients in the same call. Must be a valid UUID.
*
* @generated from field: optional string callId = 24;
*/
callId?: string;
/**
* WebRTC App provided information related to the engine the client uses.
*
* @generated from field: optional org.observertc.schemas.protobuf.Samples.ClientSample.Engine engine = 25;
*/
engine?: Samples_ClientSample_Engine;
/**
* Special marker for the samples
*
* @generated from field: optional string marker = 26;
*/
marker?: string;
/**
* WebRTC App provided information related to the operation system the client uses.
*
* @generated from field: optional org.observertc.schemas.protobuf.Samples.ClientSample.OperationSystem os = 27;
*/
os?: Samples_ClientSample_OperationSystem;
/**
* WebRTC App provided information related to the platform the client uses.
*
* @generated from field: optional org.observertc.schemas.protobuf.Samples.ClientSample.Platform platform = 28;
*/
platform?: Samples_ClientSample_Platform;
/**
* The WebRTC app configured room id the client joined for the call.
*
* @generated from field: optional string roomId = 29;
*/
roomId?: string;
/**
* The sequence number a source assigns to the sample. Every time the source make a sample at a client this number should be monothonically incremented.
*
* @generated from field: optional int32 sampleSeq = 30;
*/
sampleSeq?: number;
/**
* The offset from GMT in hours
*
* @generated from field: optional int32 timeZoneOffsetInHours = 31;
*/
timeZoneOffsetInHours?: number;
/**
* The WebRTC app configured human readable user id the client is joined.
*
* @generated from field: optional string userId = 32;
*/
userId?: string;
constructor(data?: PartialMessage<Samples_ClientSample>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples.ClientSample";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "certificates", kind: "message", T: Samples_ClientSample_Certificate, repeated: true },
{ no: 2, name: "codecs", kind: "message", T: Samples_ClientSample_MediaCodecStats, repeated: true },
{ no: 3, name: "customCallEvents", kind: "message", T: Samples_ClientSample_CustomCallEvent, repeated: true },
{ no: 4, name: "customObserverEvents", kind: "message", T: Samples_ClientSample_CustomObserverEvent, repeated: true },
{ no: 5, name: "dataChannels", kind: "message", T: Samples_ClientSample_DataChannel, repeated: true },
{ no: 6, name: "extensionStats", kind: "message", T: Samples_ClientSample_ExtensionStat, repeated: true },
{ no: 7, name: "iceCandidatePairs", kind: "message", T: Samples_ClientSample_IceCandidatePair, repeated: true },
{ no: 8, name: "iceLocalCandidates", kind: "message", T: Samples_ClientSample_IceLocalCandidate, repeated: true },
{ no: 9, name: "iceRemoteCandidates", kind: "message", T: Samples_ClientSample_IceRemoteCandidate, repeated: true },
{ no: 10, name: "iceServers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 11, name: "inboundAudioTracks", kind: "message", T: Samples_ClientSample_InboundAudioTrack, repeated: true },
{ no: 12, name: "inboundVideoTracks", kind: "message", T: Samples_ClientSample_InboundVideoTrack, repeated: true },
{ no: 13, name: "localSDPs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 14, name: "mediaConstraints", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 15, name: "mediaDevices", kind: "message", T: Samples_ClientSample_MediaDevice, repeated: true },
{ no: 16, name: "mediaSources", kind: "message", T: Samples_ClientSample_MediaSourceStat, repeated: true },
{ no: 17, name: "outboundAudioTracks", kind: "message", T: Samples_ClientSample_OutboundAudioTrack, repeated: true },
{ no: 18, name: "outboundVideoTracks", kind: "message", T: Samples_ClientSample_OutboundVideoTrack, repeated: true },
{ no: 19, name: "pcTransports", kind: "message", T: Samples_ClientSample_PeerConnectionTransport, repeated: true },
{ no: 20, name: "userMediaErrors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 21, name: "clientId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 22, name: "timestamp", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
{ no: 23, name: "browser", kind: "message", T: Samples_ClientSample_Browser, opt: true },
{ no: 24, name: "callId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 25, name: "engine", kind: "message", T: Samples_ClientSample_Engine, opt: true },
{ no: 26, name: "marker", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 27, name: "os", kind: "message", T: Samples_ClientSample_OperationSystem, opt: true },
{ no: 28, name: "platform", kind: "message", T: Samples_ClientSample_Platform, opt: true },
{ no: 29, name: "roomId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 30, name: "sampleSeq", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
{ no: 31, name: "timeZoneOffsetInHours", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
{ no: 32, name: "userId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples_ClientSample {
return new Samples_ClientSample().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples_ClientSample {
return new Samples_ClientSample().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples_ClientSample {
return new Samples_ClientSample().fromJsonString(jsonString, options);
}
static equals(a: Samples_ClientSample | PlainMessage<Samples_ClientSample> | undefined, b: Samples_ClientSample | PlainMessage<Samples_ClientSample> | undefined): boolean {
return proto2.util.equals(Samples_ClientSample, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.ClientSample.Engine
*/
export class Samples_ClientSample_Engine extends Message<Samples_ClientSample_Engine> {
/**
* The name of the Engine
*
* @generated from field: optional string name = 1;
*/
name?: string;
/**
* The version of the engine
*
* @generated from field: optional string version = 2;
*/
version?: string;
constructor(data?: PartialMessage<Samples_ClientSample_Engine>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples.ClientSample.Engine";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples_ClientSample_Engine {
return new Samples_ClientSample_Engine().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples_ClientSample_Engine {
return new Samples_ClientSample_Engine().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples_ClientSample_Engine {
return new Samples_ClientSample_Engine().fromJsonString(jsonString, options);
}
static equals(a: Samples_ClientSample_Engine | PlainMessage<Samples_ClientSample_Engine> | undefined, b: Samples_ClientSample_Engine | PlainMessage<Samples_ClientSample_Engine> | undefined): boolean {
return proto2.util.equals(Samples_ClientSample_Engine, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.ClientSample.Platform
*/
export class Samples_ClientSample_Platform extends Message<Samples_ClientSample_Platform> {
/**
* The name of the model
*
* @generated from field: optional string model = 1;
*/
model?: string;
/**
* The name of the platform
*
* @generated from field: optional string type = 2;
*/
type?: string;
/**
* The name of the vendor
*
* @generated from field: optional string vendor = 3;
*/
vendor?: string;
constructor(data?: PartialMessage<Samples_ClientSample_Platform>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples.ClientSample.Platform";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "model", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 3, name: "vendor", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples_ClientSample_Platform {
return new Samples_ClientSample_Platform().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples_ClientSample_Platform {
return new Samples_ClientSample_Platform().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples_ClientSample_Platform {
return new Samples_ClientSample_Platform().fromJsonString(jsonString, options);
}
static equals(a: Samples_ClientSample_Platform | PlainMessage<Samples_ClientSample_Platform> | undefined, b: Samples_ClientSample_Platform | PlainMessage<Samples_ClientSample_Platform> | undefined): boolean {
return proto2.util.equals(Samples_ClientSample_Platform, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.ClientSample.Browser
*/
export class Samples_ClientSample_Browser extends Message<Samples_ClientSample_Browser> {
/**
* The name of the operation system (e.g.: linux) the webrtc app uses
*
* @generated from field: optional string name = 1;
*/
name?: string;
/**
* The version of the operation system
*
* @generated from field: optional string version = 2;
*/
version?: string;
constructor(data?: PartialMessage<Samples_ClientSample_Browser>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples.ClientSample.Browser";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples_ClientSample_Browser {
return new Samples_ClientSample_Browser().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples_ClientSample_Browser {
return new Samples_ClientSample_Browser().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples_ClientSample_Browser {
return new Samples_ClientSample_Browser().fromJsonString(jsonString, options);
}
static equals(a: Samples_ClientSample_Browser | PlainMessage<Samples_ClientSample_Browser> | undefined, b: Samples_ClientSample_Browser | PlainMessage<Samples_ClientSample_Browser> | undefined): boolean {
return proto2.util.equals(Samples_ClientSample_Browser, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.ClientSample.OperationSystem
*/
export class Samples_ClientSample_OperationSystem extends Message<Samples_ClientSample_OperationSystem> {
/**
* The name of the operation system (e.g.: linux) the webrtc app uses
*
* @generated from field: optional string name = 1;
*/
name?: string;
/**
* The version of the operation system
*
* @generated from field: optional string version = 2;
*/
version?: string;
/**
* The name of the version of the operation system
*
* @generated from field: optional string versionName = 3;
*/
versionName?: string;
constructor(data?: PartialMessage<Samples_ClientSample_OperationSystem>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples.ClientSample.OperationSystem";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 3, name: "versionName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples_ClientSample_OperationSystem {
return new Samples_ClientSample_OperationSystem().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples_ClientSample_OperationSystem {
return new Samples_ClientSample_OperationSystem().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples_ClientSample_OperationSystem {
return new Samples_ClientSample_OperationSystem().fromJsonString(jsonString, options);
}
static equals(a: Samples_ClientSample_OperationSystem | PlainMessage<Samples_ClientSample_OperationSystem> | undefined, b: Samples_ClientSample_OperationSystem | PlainMessage<Samples_ClientSample_OperationSystem> | undefined): boolean {
return proto2.util.equals(Samples_ClientSample_OperationSystem, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.ClientSample.MediaDevice
*/
export class Samples_ClientSample_MediaDevice extends Message<Samples_ClientSample_MediaDevice> {
/**
* the provided id of the media input / output
*
* @generated from field: optional string id = 1;
*/
id?: string;
/**
* The media kind of the media device
*
* @generated from field: optional string kind = 2;
*/
kind?: string;
/**
* The name of the device
*
* @generated from field: optional string label = 3;
*/
label?: string;
constructor(data?: PartialMessage<Samples_ClientSample_MediaDevice>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples.ClientSample.MediaDevice";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 3, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples_ClientSample_MediaDevice {
return new Samples_ClientSample_MediaDevice().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples_ClientSample_MediaDevice {
return new Samples_ClientSample_MediaDevice().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples_ClientSample_MediaDevice {
return new Samples_ClientSample_MediaDevice().fromJsonString(jsonString, options);
}
static equals(a: Samples_ClientSample_MediaDevice | PlainMessage<Samples_ClientSample_MediaDevice> | undefined, b: Samples_ClientSample_MediaDevice | PlainMessage<Samples_ClientSample_MediaDevice> | undefined): boolean {
return proto2.util.equals(Samples_ClientSample_MediaDevice, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.ClientSample.ExtensionStat
*/
export class Samples_ClientSample_ExtensionStat extends Message<Samples_ClientSample_ExtensionStat> {
/**
* The payload of the extension stats the custom app provides
*
* @generated from field: required string payload = 1;
*/
payload?: string;
/**
* The type of the extension stats the custom app provides
*
* @generated from field: required string type = 2;
*/
type?: string;
constructor(data?: PartialMessage<Samples_ClientSample_ExtensionStat>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples.ClientSample.ExtensionStat";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples_ClientSample_ExtensionStat {
return new Samples_ClientSample_ExtensionStat().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples_ClientSample_ExtensionStat {
return new Samples_ClientSample_ExtensionStat().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples_ClientSample_ExtensionStat {
return new Samples_ClientSample_ExtensionStat().fromJsonString(jsonString, options);
}
static equals(a: Samples_ClientSample_ExtensionStat | PlainMessage<Samples_ClientSample_ExtensionStat> | undefined, b: Samples_ClientSample_ExtensionStat | PlainMessage<Samples_ClientSample_ExtensionStat> | undefined): boolean {
return proto2.util.equals(Samples_ClientSample_ExtensionStat, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.ClientSample.CustomCallEvent
*/
export class Samples_ClientSample_CustomCallEvent extends Message<Samples_ClientSample_CustomCallEvent> {
/**
* the name of the event used as identifier. (e.g.: MEDIA_TRACK_MUTED, USER_REJOINED, etc..)
*
* @generated from field: required string name = 1;
*/
name?: string;
/**
* Additional attachment relevant for the event
*
* @generated from field: optional string attachments = 2;
*/
attachments?: string;
/**
* The identifier of the media track the event is related to
*
* @generated from field: optional string mediaTrackId = 3;
*/
mediaTrackId?: string;
/**
* the human readable message of the event
*
* @generated from field: optional string message = 4;
*/
message?: string;
/**
* The unique identifier of the peer connection
*
* @generated from field: optional string peerConnectionId = 5;
*/
peerConnectionId?: string;
/**
* The EPOCH timestamp the event is generated
*
* @generated from field: optional uint32 timestamp = 6;
*/
timestamp?: number;
/**
* the value of the event
*
* @generated from field: optional string value = 7;
*/
value?: string;
constructor(data?: PartialMessage<Samples_ClientSample_CustomCallEvent>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples.ClientSample.CustomCallEvent";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "attachments", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 3, name: "mediaTrackId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 5, name: "peerConnectionId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 6, name: "timestamp", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
{ no: 7, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples_ClientSample_CustomCallEvent {
return new Samples_ClientSample_CustomCallEvent().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples_ClientSample_CustomCallEvent {
return new Samples_ClientSample_CustomCallEvent().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples_ClientSample_CustomCallEvent {
return new Samples_ClientSample_CustomCallEvent().fromJsonString(jsonString, options);
}
static equals(a: Samples_ClientSample_CustomCallEvent | PlainMessage<Samples_ClientSample_CustomCallEvent> | undefined, b: Samples_ClientSample_CustomCallEvent | PlainMessage<Samples_ClientSample_CustomCallEvent> | undefined): boolean {
return proto2.util.equals(Samples_ClientSample_CustomCallEvent, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.ClientSample.CustomObserverEvent
*/
export class Samples_ClientSample_CustomObserverEvent extends Message<Samples_ClientSample_CustomObserverEvent> {
/**
* the name of the event used as identifier. (e.g.: MEDIA_TRACK_MUTED, USER_REJOINED, etc..)
*
* @generated from field: required string name = 1;
*/
name?: string;
/**
* Additional attachment relevant for the event
*
* @generated from field: optional string attachments = 2;
*/
attachments?: string;
/**
* The identifier of the media track the event is related to
*
* @generated from field: optional string mediaTrackId = 3;
*/
mediaTrackId?: string;
/**
* the human readable message of the event
*
* @generated from field: optional string message = 4;
*/
message?: string;
/**
* The EPOCH timestamp the event is generated
*
* @generated from field: optional uint32 timestamp = 5;
*/
timestamp?: number;
constructor(data?: PartialMessage<Samples_ClientSample_CustomObserverEvent>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples.ClientSample.CustomObserverEvent";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "attachments", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 3, name: "mediaTrackId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 5, name: "timestamp", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples_ClientSample_CustomObserverEvent {
return new Samples_ClientSample_CustomObserverEvent().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples_ClientSample_CustomObserverEvent {
return new Samples_ClientSample_CustomObserverEvent().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples_ClientSample_CustomObserverEvent {
return new Samples_ClientSample_CustomObserverEvent().fromJsonString(jsonString, options);
}
static equals(a: Samples_ClientSample_CustomObserverEvent | PlainMessage<Samples_ClientSample_CustomObserverEvent> | undefined, b: Samples_ClientSample_CustomObserverEvent | PlainMessage<Samples_ClientSample_CustomObserverEvent> | undefined): boolean {
return proto2.util.equals(Samples_ClientSample_CustomObserverEvent, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.ClientSample.DataChannel
*/
export class Samples_ClientSample_DataChannel extends Message<Samples_ClientSample_DataChannel> {
/**
* The id of the peer connection the data channel is assigned to
*
* @generated from field: required string peerConnectionId = 1;
*/
peerConnectionId?: string;
/**
* The total number of bytes received on the data channel
*
* @generated from field: optional uint32 bytesReceived = 2;
*/
bytesReceived?: number;
/**
* The total number of bytes sent on the data channel
*
* @generated from field: optional uint32 bytesSent = 3;
*/
bytesSent?: number;
/**
* The id of the data channel assigned by the peer connection when it is opened
*
* @generated from field: optional int32 dataChannelIdentifier = 4;
*/
dataChannelIdentifier?: number;
/**
* The label of the data channel
*
* @generated from field: optional string label = 5;
*/
label?: string;
/**
* The total number of message received on the data channel
*
* @generated from field: optional int32 messageReceived = 6;
*/
messageReceived?: number;
/**
* The total number of message sent on the data channel
*
* @generated from field: optional int32 messageSent = 7;
*/
messageSent?: number;
/**
* The protocol the data channel utilizes
*
* @generated from field: optional string protocol = 8;
*/
protocol?: string;
/**
* The state of the data channel
*
* @generated from field: optional string state = 9;
*/
state?: string;
constructor(data?: PartialMessage<Samples_ClientSample_DataChannel>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples.ClientSample.DataChannel";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "peerConnectionId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "bytesReceived", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
{ no: 3, name: "bytesSent", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
{ no: 4, name: "dataChannelIdentifier", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
{ no: 5, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 6, name: "messageReceived", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
{ no: 7, name: "messageSent", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
{ no: 8, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 9, name: "state", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples_ClientSample_DataChannel {
return new Samples_ClientSample_DataChannel().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples_ClientSample_DataChannel {
return new Samples_ClientSample_DataChannel().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples_ClientSample_DataChannel {
return new Samples_ClientSample_DataChannel().fromJsonString(jsonString, options);
}
static equals(a: Samples_ClientSample_DataChannel | PlainMessage<Samples_ClientSample_DataChannel> | undefined, b: Samples_ClientSample_DataChannel | PlainMessage<Samples_ClientSample_DataChannel> | undefined): boolean {
return proto2.util.equals(Samples_ClientSample_DataChannel, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.ClientSample.PeerConnectionTransport
*/
export class Samples_ClientSample_PeerConnectionTransport extends Message<Samples_ClientSample_PeerConnectionTransport> {
/**
* The unique identifier of the peer connection
*
* @generated from field: required string peerConnectionId = 1;
*/
peerConnectionId?: string;
/**
* The identifier of the transport the ice candidate pair is negotiated on
*
* @generated from field: required string transportId = 2;
*/
transportId?: string;
/**
* Represents the total amount of bytes received on the corresponded transport
*
* @generated from field: optional uint32 bytesReceived = 3;
*/
bytesReceived?: number;
/**
* Represents the total amount of bytes sent on the corresponded transport
*
* @generated from field: optional uint32 bytesSent = 4;
*/
bytesSent?: number;
/**
* Represents the name of the DTLS cipher used in the corresponded transport
*
* @generated from field: optional string dtlsCipher = 5;
*/
dtlsCipher?: string;
/**
* The role this host plays in DTLS negotiations
*
* @generated from field: optional string dtlsRole = 6;
*/
dtlsRole?: string;
/**
* Represents the current state of DTLS for the peer connection transport layer
*
* @generated from field: optional string dtlsState = 7;
*/
dtlsState?: string;
/**
* Represent the current local username fragment used in message validation procedures for ICE under DTLS Transport
*
* @generated from field: optional string iceLocalUsernameFragment = 8;
*/
iceLocalUsernameFragment?: string;
/**
* Represent the current role of ICE under DTLS Transport
*
* @generated from field: optional string iceRole = 9;
*/
iceRole?: string;
/**
* Represents the current transport state (RTCIceTransportState) of ICE for the peer connection transport layer
*
* @generated from field: optional string iceState = 10;
*/
iceState?: string;
/**
* The label associated with the peer connection
*
* @generated from field: optional string label = 11;
*/
label?: string;
/**
* If DTLS negotiated it gives the id of the local certificate
*
* @generated from field: optional string localCertificateId = 12;
*/
localCertificateId?: string;
/**
* Represents the total number of packets received on the corresponded transport
*
* @generated from field: optional int32 packetsReceived = 13;
*/
packetsReceived?: number;
/**
* Represents the total number of packets sent on the corresponded transport
*
* @generated from field: optional int32 packetsSent = 14;
*/
packetsSent?: number;
/**
* If DTLS negotiated it gives the id of the remote certificate
*
* @generated from field: optional string remoteCertificateId = 15;
*/
remoteCertificateId?: string;
/**
* The total number of candidate pair changes over the peer connection
*
* @generated from field: optional int32 selectedCandidatePairChanges = 16;
*/
selectedCandidatePairChanges?: number;
/**
* The identifier of the candidate pair the transport currently uses
*
* @generated from field: optional string selectedCandidatePairId = 17;
*/
selectedCandidatePairId?: string;
/**
* Represents the name of the SRTP cipher used in the corresponded transport
*
* @generated from field: optional string srtpCipher = 18;
*/
srtpCipher?: string;
/**
* Represents the name of the IANA TLS Supported Groups used in the corresponded transport
*
* @generated from field: optional string tlsGroup = 19;
*/
tlsGroup?: string;
/**
* Represents the version number of the TLS used in the corresponded transport
*
* @generated from field: optional string tlsVersion = 20;
*/
tlsVersion?: string;
constructor(data?: PartialMessage<Samples_ClientSample_PeerConnectionTransport>) {
super();
proto2.util.initPartial(data, this);
}
static readonly runtime = proto2;
static readonly typeName = "org.observertc.schemas.protobuf.Samples.ClientSample.PeerConnectionTransport";
static readonly fields: FieldList = proto2.util.newFieldList(() => [
{ no: 1, name: "peerConnectionId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "transportId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "bytesReceived", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
{ no: 4, name: "bytesSent", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
{ no: 5, name: "dtlsCipher", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 6, name: "dtlsRole", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 7, name: "dtlsState", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 8, name: "iceLocalUsernameFragment", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 9, name: "iceRole", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 10, name: "iceState", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 11, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 12, name: "localCertificateId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 13, name: "packetsReceived", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
{ no: 14, name: "packetsSent", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
{ no: 15, name: "remoteCertificateId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 16, name: "selectedCandidatePairChanges", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
{ no: 17, name: "selectedCandidatePairId", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 18, name: "srtpCipher", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 19, name: "tlsGroup", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 20, name: "tlsVersion", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Samples_ClientSample_PeerConnectionTransport {
return new Samples_ClientSample_PeerConnectionTransport().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Samples_ClientSample_PeerConnectionTransport {
return new Samples_ClientSample_PeerConnectionTransport().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Samples_ClientSample_PeerConnectionTransport {
return new Samples_ClientSample_PeerConnectionTransport().fromJsonString(jsonString, options);
}
static equals(a: Samples_ClientSample_PeerConnectionTransport | PlainMessage<Samples_ClientSample_PeerConnectionTransport> | undefined, b: Samples_ClientSample_PeerConnectionTransport | PlainMessage<Samples_ClientSample_PeerConnectionTransport> | undefined): boolean {
return proto2.util.equals(Samples_ClientSample_PeerConnectionTransport, a, b);
}
}
/**
* @generated from message org.observertc.schemas.protobuf.Samples.ClientSample.IceCandidatePair
*/
export class Samples_ClientSample_IceCandidatePair extends Message<Samples_ClientSample_IceCandidatePair> {
/**
* The unique identifier of the peer connection
*
* @generated from field: required string candidatePairId = 1;
*/
candidatePairId?: string;
/**
* The unique identifier of the peer connection
*
* @generated from field: required string peerConnectionId = 2;
*/
peerConnectionId?: string;
/**
* The sum of the underlying cc algorithm provided incoming bitrate for the RTP streams over the corresponded transport
*
* @generated from field: optional double availableIncomingBitrate = 3;
*/
availableIncomingBitrate?: number;
/**
* The sum of the underlying cc algorithm provided outgoing bitrate for the RTP streams over the corresponded transport
*
* @generated from field: optional double availableOutgoingBitrate = 4;
*/
availableOutgoingBitrate?: number;
/**
* Total amount of bytes for this candidate pair that have been discarded due to socket errors on the selected candidate pair using the corresponded transport
*
* @generated from field: optional uint32 bytesDiscardedOnSend = 5;
*/
bytesDiscardedOnSend?: number;
/**
* The total number of bytes received using the last selected candidate pair over the corresponded transport
*
* @generated from field: optional uint32 bytesReceived = 6;
*/
bytesReceived?: number;
/**
* The total number of bytes sent using the last selected candidate pair over the corresponded transport
*
* @generated from field: optional uint32 bytesSent = 7;
*/
bytesSent?: number;
/**
* Represents the total number of consent requests sent on the selected candidate pair using the corresponded transport
*
* @generated from field: optional int32 consentRequestsSent = 8;
*/
consentRequestsSent?: number;
/**
* Represents the last round trip time measurements in seconds based on STUN connectivity check over the corresponded transport
*
* @generated from field: optional double currentRoundTripTime = 9;
*/
currentRoundTripTime?: number;
/**
* The label associated to the peer connection
*
* @generated from field: optional string label = 10;
*/
label?: string;
/**
* Represents the timestamp at which the last packet was received on the selected candidate pair, excluding STUN packets over the corresponded transport (UTC Epoch in ms)
*
* @generated from field: optional uint32 lastPacketReceivedTimestamp = 11;
*/
lastPacketReceivedTimestamp?: number;
/**
* Represents the timestamp at which the last packet was sent on the selected candidate pair, excluding STUN packets over the corresponded transport (UTC Epoch in ms)
*
* @generated from field: optional uint32 lastPacketSentTimestamp = 12;
*/
lastPacketSentTimestamp?: number;
/**
* The unique identifier of the candidate the negotiated pair is selected at local side
*
* @generated from field: optional string localCandidateId = 13;
*/
localCandidateId?: string;
/**
* indicate if the ice candidate pair is nominated or not
*
* @generated from field: optional bool nominated = 14;
*/
nominated?: boolean;
/**
* Total amount of packets for this candidate pair that have been discarded due to socket errors on the selected candidate pair using the corresponded transport
*
* @generated from field: optional int32 packetsDiscardedOnSend = 15;
*/
packetsDiscardedOnSend?: number;
/**
* The total number of packets received using the last selected candidate pair over the corresponded transport
*
* @generated from field: optional int32 packetsReceived = 16;
*/
packetsReceived?: number;
/**
* The total number of packets sent using the last selected candidate pair over the corresponded transport
*
* @generated from field: optional int32 packetsSent = 17;
*/
packetsSent?: number;
/**
* The unique identifier of the candidate the negotiated pair is selected at remote side
*
* @generated from field: optional string remoteCandidateId = 18;
*/
remoteCandidateId?: string;
/**
* Represents the total number of connectivity check requests received on the selected candidate pair using the corresponded transport
*
* @generated from field: optional int32 requestsReceived = 19;
*/
requestsReceived?: number;
/**
* Represents the total number of connectivity check requests sent on the selected candidate pair using the corresponded transport
*
* @generated from field: optional int32 requestsSent = 20;
*/
requestsSent?: number;
/**
* Represents the total number of connecti