code: public Pager<ProtectedBranch> getProtectedBranches(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException {
          return (new Pager<ProtectedBranch>(this, ProtectedBranch.class, itemsPerPage, null,
                  "projects", getProjectIdOrPath(projectIdOrPath), "protected_branches"));
      }
docs: Gets a Pager of protected branches from a project.
  
  <pre><code>GitLab Endpoint: GET /projects/:id/protected_branches</code></pre>
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param itemsPerPage the number of instances that will be fetched per page
  @return the Pager of protected branches for the project
  @throws GitLabApiException if any exception occurs