code: function createQueryMetadata (pageSize, bookmark) {
      const metadata = new _serviceProto.QueryMetadata();
      metadata.setPageSize(pageSize);
      metadata.setBookmark(bookmark);
      return metadata.toBuffer();
  }
docs: Construct the QueryMetadata with a page size and a bookmark needed for pagination