createRequest method
Creates a message object that can deserialize a request.
Implementation
$pb.GeneratedMessage createRequest($core.String methodName) {
switch (methodName) {
case 'createRoom':
return $12.CreateRoomRequest();
case 'joinRoom':
return $12.JoinRoomRequest();
case 'createTransportOnServer':
return $12.CreateTransportRequest();
case 'connectTransportOnServer':
return $12.ConnectTransportRequest();
case 'produce':
return $12.ProduceRequest();
case 'produceData':
return $12.ProduceDataRequest();
case 'consume':
return $12.ConsumeRequest();
case 'closeProducer':
return $12.CloseProducerRequest();
case 'batchCloseProducers':
return $12.BatchCloseProducersRequest();
case 'closeConsumer':
return $12.CloseConsumerRequest();
case 'batchCloseConsumers':
return $12.BatchCloseConsumersRequest();
case 'resumeConsumer':
return $12.ResumeConsumerRequest();
case 'createDataConsumer':
return $12.createDataConsumerRequest();
case 'restartTransportIce':
return $12.RestartIceRequest();
case 'closePeer':
return $12.ClosePeerRequest();
case 'closeRoom':
return $12.CloseRoomRequest();
case 'createPipeTransport':
return $12.CreatePipeTransportRequest();
case 'connectPipeTransport':
return $12.ConnectPipeTransportRequest();
case 'pipeProducer':
return $12.PipeProduceRequest();
case 'pipeConsumer':
return $12.PipeConsumeRequest();
default:
throw $core.ArgumentError('Unknown method: $methodName');
}
}