Skip to content

Commit 35b46dc

Browse files
samples: add presubmit lint check (#156)
* changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore(java_templates): add lint/static analysis presubmit checks for samples * chore(java_templates): add lint/static analysis presubmit checks for samples * chore: fix trailing whitespace Source-Author: Jeff Ching <[email protected]> Source-Date: Mon Aug 17 14:29:16 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: c3caf0704f25a0c365f1c315e804a30b87c62a75 Source-Link: googleapis/synthtool@c3caf07 * chore(java_templates): stop running pmd/spotbugs checks for samples This was creating too much noise. We will revisit with other options and/or tune these checks. Source-Author: Jeff Ching <[email protected]> Source-Date: Wed Aug 19 12:26:49 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 9602086c6c5b05db77950c7f7495a2a3868f3537 Source-Link: googleapis/synthtool@9602086 * chore: fix line length Co-authored-by: Jeff Ching <[email protected]>
1 parent fc510a3 commit 35b46dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

document-ai/snippets/src/main/java/documentai/v1beta2/ParseWithModelBeta.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public static void parseWithModel() throws IOException {
3232
// TODO(developer): Replace these variables before running the sample.
3333
String projectId = "your-project-id";
3434
String location = "your-project-location"; // Format is "us" or "eu".
35-
// AutoML model name formatted as: "projects/[PROJECT_ID]/locations/[LOCATION]/models/[MODEL_ID]"
35+
// AutoML model name formatted as:
36+
// "projects/[PROJECT_ID]/locations/[LOCATION]/models/[MODEL_ID]"
3637
String autoMlModel = "your-full-resource-model-name";
3738
String gcsUri = "gs://your-gcs-bucket/path/to/input/file.json";
3839
parseWithModel(projectId, location, autoMlModel, gcsUri);

0 commit comments

Comments
 (0)