/**
  * {@inheritdoc}
  */
 public function writeTo(\Protobuf\WriteContext $context)
 {
     $stream = $context->getStream();
     $writer = $context->getWriter();
     $sizeContext = $context->getComputeSizeContext();
     if ($this->success !== null) {
         $writer->writeVarint($stream, 8);
         $writer->writeBool($stream, $this->success);
     }
     if ($this->player_data !== null) {
         $writer->writeVarint($stream, 18);
         $writer->writeVarint($stream, $this->player_data->serializedSize($sizeContext));
         $this->player_data->writeTo($context);
     }
     if ($this->banned !== null) {
         $writer->writeVarint($stream, 24);
         $writer->writeBool($stream, $this->banned);
     }
     if ($this->warn !== null) {
         $writer->writeVarint($stream, 32);
         $writer->writeBool($stream, $this->warn);
     }
     if ($this->extensions !== null) {
         $this->extensions->writeTo($context);
     }
     return $stream;
 }
 /**
  * {@inheritdoc}
  */
 public function writeTo(\Protobuf\WriteContext $context)
 {
     $stream = $context->getStream();
     $writer = $context->getWriter();
     $sizeContext = $context->getComputeSizeContext();
     if ($this->codename !== null) {
         $writer->writeVarint($stream, 10);
         $writer->writeString($stream, $this->codename);
     }
     if ($this->user_message !== null) {
         $writer->writeVarint($stream, 18);
         $writer->writeString($stream, $this->user_message);
     }
     if ($this->is_assignable !== null) {
         $writer->writeVarint($stream, 24);
         $writer->writeBool($stream, $this->is_assignable);
     }
     if ($this->status !== null) {
         $writer->writeVarint($stream, 32);
         $writer->writeVarint($stream, $this->status->value());
     }
     if ($this->updated_player !== null) {
         $writer->writeVarint($stream, 42);
         $writer->writeVarint($stream, $this->updated_player->serializedSize($sizeContext));
         $this->updated_player->writeTo($context);
     }
     if ($this->extensions !== null) {
         $this->extensions->writeTo($context);
     }
     return $stream;
 }
 /**
  * {@inheritdoc}
  */
 public function writeTo(\Protobuf\WriteContext $context)
 {
     $stream = $context->getStream();
     $writer = $context->getWriter();
     $sizeContext = $context->getComputeSizeContext();
     if ($this->status !== null) {
         $writer->writeVarint($stream, 8);
         $writer->writeVarint($stream, $this->status->value());
     }
     if ($this->player_data !== null) {
         $writer->writeVarint($stream, 18);
         $writer->writeVarint($stream, $this->player_data->serializedSize($sizeContext));
         $this->player_data->writeTo($context);
     }
     if ($this->extensions !== null) {
         $this->extensions->writeTo($context);
     }
     return $stream;
 }