code: public List<ProtectedBranch> getProtectedBranches(Object projectIdOrPath) throws GitLabApiException {
          return (getProtectedBranches(projectIdOrPath, this.getDefaultPerPage()).all());
      }
docs: Gets a list 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
  @return the list of protected branches for the project
  @throws GitLabApiException if any exception occurs