Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function serializedSize(\Protobuf\ComputeSizeContext $context)
 {
     $calculator = $context->getSizeCalculator();
     $size = 0;
     if ($this->request_type !== null) {
         $size += 1;
         $size += $calculator->computeVarintSize($this->request_type->value());
     }
     if ($this->request_message !== null) {
         $size += 1;
         $size += $calculator->computeByteStreamSize($this->request_message);
     }
     if ($this->extensions !== null) {
         $size += $this->extensions->serializedSize($context);
     }
     return $size;
 }
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::GET_HATCHED_EGGS();
 }
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::SET_AVATAR();
 }
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::SET_CONTACT_SETTINGS();
 }
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::MARK_TUTORIAL_COMPLETE();
 }
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::DOWNLOAD_ITEM_TEMPLATES();
 }
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::FORT_DETAILS();
 }
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::GET_PLAYER();
 }
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::GET_MAP_OBJECTS();
 }