code: @Beta
    public GoogleCredential createScoped(Collection<String> scopes) {
      if (serviceAccountPrivateKey == null) {
        return this;
      }
      return toBuilder()
          .setServiceAccountScopes(scopes)
          .build();
    }
docs: {@link Beta} <br/>
  For credentials that require scopes, creates a copy of the credential with the specified
  scopes.