/**
  * {@inheritdoc}
  */
 public function serializedSize(\Protobuf\ComputeSizeContext $context)
 {
     $calculator = $context->getSizeCalculator();
     $size = 0;
     if ($this->success !== null) {
         $size += 1;
         $size += 1;
     }
     if ($this->player_data !== null) {
         $innerSize = $this->player_data->serializedSize($context);
         $size += 1;
         $size += $innerSize;
         $size += $calculator->computeVarintSize($innerSize);
     }
     if ($this->banned !== null) {
         $size += 1;
         $size += 1;
     }
     if ($this->warn !== null) {
         $size += 1;
         $size += 1;
     }
     if ($this->extensions !== null) {
         $size += $this->extensions->serializedSize($context);
     }
     return $size;
 }
 /**
  * {@inheritdoc}
  */
 public function serializedSize(\Protobuf\ComputeSizeContext $context)
 {
     $calculator = $context->getSizeCalculator();
     $size = 0;
     if ($this->codename !== null) {
         $size += 1;
         $size += $calculator->computeStringSize($this->codename);
     }
     if ($this->user_message !== null) {
         $size += 1;
         $size += $calculator->computeStringSize($this->user_message);
     }
     if ($this->is_assignable !== null) {
         $size += 1;
         $size += 1;
     }
     if ($this->status !== null) {
         $size += 1;
         $size += $calculator->computeVarintSize($this->status->value());
     }
     if ($this->updated_player !== null) {
         $innerSize = $this->updated_player->serializedSize($context);
         $size += 1;
         $size += $innerSize;
         $size += $calculator->computeVarintSize($innerSize);
     }
     if ($this->extensions !== null) {
         $size += $this->extensions->serializedSize($context);
     }
     return $size;
 }