/**
  * {@inheritdoc}
  */
 public function serializedSize(\Protobuf\ComputeSizeContext $context)
 {
     $calculator = $context->getSizeCalculator();
     $size = 0;
     if ($this->incubator_type !== null) {
         $size += 1;
         $size += $calculator->computeVarintSize($this->incubator_type->value());
     }
     if ($this->uses !== null) {
         $size += 1;
         $size += $calculator->computeVarintSize($this->uses);
     }
     if ($this->distance_multiplier !== null) {
         $size += 1;
         $size += 4;
     }
     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->id !== null) {
         $size += 1;
         $size += $calculator->computeStringSize($this->id);
     }
     if ($this->item_id !== null) {
         $size += 1;
         $size += $calculator->computeVarintSize($this->item_id->value());
     }
     if ($this->incubator_type !== null) {
         $size += 1;
         $size += $calculator->computeVarintSize($this->incubator_type->value());
     }
     if ($this->uses_remaining !== null) {
         $size += 1;
         $size += $calculator->computeVarintSize($this->uses_remaining);
     }
     if ($this->pokemon_id !== null) {
         $size += 1;
         $size += $calculator->computeVarintSize($this->pokemon_id);
     }
     if ($this->start_km_walked !== null) {
         $size += 1;
         $size += 8;
     }
     if ($this->target_km_walked !== null) {
         $size += 1;
         $size += 8;
     }
     if ($this->extensions !== null) {
         $size += $this->extensions->serializedSize($context);
     }
     return $size;
 }