public function serializeToString() {
    $uninitialized = $this->checkInitialized();
    if ($uninitialized !== null) {
      throw new ProtocolBufferEncodeError(
        "Not initialized: " . $uninitialized);
    }
    return $this->serializePartialToString();
  }
public function serializeToString() {
    $uninitialized = $this->checkInitialized();
    if ($uninitialized !== null) {
      throw new ProtocolBufferEncodeError(
        "Not initialized: " . $uninitialized);
    }
    return $this->serializePartialToString();
  }
public function serializeToString ( ) { $ uninitialized = $ this -> checkInitialized ( ) ; if ( $ uninitialized !== null ) { throw new ProtocolBufferEncodeError ( "Not initialized: " . $ uninitialized ) ; } return $ this -> serializePartialToString ( ) ; }
Serializes the message and return it as a string.

@throws ProtocolBufferEncodeError If the protocol buffer is not
initialized.

@return string The serialized protocol buffer.
Serializes the message and return it as a string .