original_string: public function serializePartialToString() {
      $enc = new Encoder();
      $this->outputPartial($enc);
      $res = $enc->toString();
  
      # Continue to be a little paranoid about the correctness of the protocol
      # buffer implementation.
      if (mt_rand(0, 99) === 0 && $this->byteSizePartial() !== strlen($res)) {
        throw new ProtocolBufferEncodeError(
          "Internal bug: Encoded size doesn't match predicted");
      }
      return $res;
    }
code: public function serializePartialToString() {
      $enc = new Encoder();
      $this->outputPartial($enc);
      $res = $enc->toString();
  
      # Continue to be a little paranoid about the correctness of the protocol
      # buffer implementation.
      if (mt_rand(0, 99) === 0 && $this->byteSizePartial() !== strlen($res)) {
        throw new ProtocolBufferEncodeError(
          "Internal bug: Encoded size doesn't match predicted");
      }
      return $res;
    }
code_tokens: public function serializePartialToString ( ) { $ enc = new Encoder ( ) ; $ this -> outputPartial ( $ enc ) ; $ res = $ enc -> toString ( ) ; # Continue to be a little paranoid about the correctness of the protocol # buffer implementation. if ( mt_rand ( 0 , 99 ) === 0 && $ this -> byteSizePartial ( ) !== strlen ( $ res ) ) { throw new ProtocolBufferEncodeError ( "Internal bug: Encoded size doesn't match predicted" ) ; } return $ res ; }
docstring: Serializes a protocol buffer that might not have all of the required fields
  set.
  
  @return string The serialized protocol buffer.
docstring_tokens: Serializes a protocol buffer that might not have all of the required fields set .