@Test public void testBuilder_serviceAccount() throws Exception { OfflineCredentials offlineCredentials = new OfflineCredentials.Builder() .forApi(OfflineCredentials.Api.AD_MANAGER) .withJsonKeyFilePath("jsonKeyFilePath") .build(); assertEquals("jsonKeyFilePath", offlineCredentials.getJsonKeyFilePath()); }
public String getJsonKeyFilePath() { return jsonKeyFilePath; }
OfflineCredentials { public String getJsonKeyFilePath() { return jsonKeyFilePath; } }
OfflineCredentials { public String getJsonKeyFilePath() { return jsonKeyFilePath; } private  OfflineCredentials(ForApiBuilder builder); }
OfflineCredentials { public String getJsonKeyFilePath() { return jsonKeyFilePath; } private  OfflineCredentials(ForApiBuilder builder); HttpTransport getHttpTransport(); String getRefreshToken(); String getClientId(); String getClientSecret(); String getJsonKeyFilePath(); Credential generateCredential(); }
OfflineCredentials { public String getJsonKeyFilePath() { return jsonKeyFilePath; } private  OfflineCredentials(ForApiBuilder builder); HttpTransport getHttpTransport(); String getRefreshToken(); String getClientId(); String getClientSecret(); String getJsonKeyFilePath(); Credential generateCredential();  }