Lines Matching +full:googleapis +full:- +full:gen
7 To run the unit tests in `gapic-generator-java` submodule, first build all
8 modules with `mvn -pl '!gapic-generator-java' install -DskipTests` at the root
10 then `cd` into `gapic-generator-java` submodule for the following commands:
12 - Run all unit tests:
15 # In gapic-generator-java submodule
19 - Run a single or multiple unit tests:
22 # In gapic-generator-java submodule
23 mvn test -Dtest=JavaCodeGeneratorTest
25 …mvn test "-Dtest=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyTest.class#one.*|two.*], %regex[#fas…
28 - Update all unit test golden files:
31 # In gapic-generator-java submodule
32 mvn test -DupdateUnitGoldens
35 - Update a single unit test golden file, for example `JavaCodeGeneratorTest.java`:
38 # In gapic-generator-java submodule
39 mvn test -DupdateUnitGoldens -Dtest=JavaCodeGeneratorTest
42 Note that `mvn -pl '!gapic-generator-java' install -DskipTests`
44 because the gapic-generator-java submodule depends on the "test jars" of
45 gax-java. The test jars are absent until Maven's "package" phase, which is later
50 To run integration test for gapic-generator-java, run this Bazel command in the
59 - Run a single integration test for API like `Redis`, it generates Java source
68 - Update integration test golden files, for example `Redis`. This clobbers all the
76 ## Running the Plugin under googleapis with local gapic-generator-java
78 For running the Plugin with showcase protos and local gapic-generator-java, see
83 1. Clone [googleapis](https://github.com/googleapis/googleapis).
85 2. Modify `googleapis/WORKSPACE` to point to local gapic-generator-java
87 Normally, googleapis's build pulls in gapic-generator-java from Maven Central.
88 …ocal run, we first need to build a local SNAPSHOT jar of the generator. Then we point googleapis to
91 Replace the following section in googleapis
97 "com.google.api:gapic-generator-java:" + _gapic_generator_java_version,
109 strip_prefix = "gapic-generator-java-%s" % _gapic_generator_java_version,
110 …urls = ["https://github.com/googleapis/gapic-generator-java/archive/v%s.zip" % _gapic_generator_ja…
113 # gax-java is part of gapic-generator-java repository
116 strip_prefix = "gapic-generator-java-%s/gax-java" % _gapic_generator_java_version,
117 …urls = ["https://github.com/googleapis/gapic-generator-java/archive/v%s.zip" % _gapic_generator_ja…
123 _gapic_generator_java_version = "2.15.4-SNAPSHOT"
127 "com.google.api:gapic-generator-java:" + _gapic_generator_java_version,
139 path = "/absolute/path/to/your/local/gapic-generator-java",
142 # gax-java is part of gapic-generator-java repository
145 path = "/absolute/path/to/your/local/gapic-generator-java/gax-java",
149 …Note: At the time of writing, the gapic-generator version was `2.13.0`. Update the version to the …
153 You can generate any client library based on the protos within googleapis.
160 bazelisk build //google/cloud/speech/v2:google-cloud-speech-v2-java
163 …Note: If you are running into bazel build issues, you can try to remove gapic-generator-java cache…
166 rm -rf ~/.m2/repository/com/google/api/
168 and then rebuild gapic-generator-java (`mvn clean install`).
170 ## Debugging the gapic-generator-java running on protobuf compiler
172 1. In [googleapis](https://github.com/googleapis/googleapis) root directory, run the following comm…
177 …The protobuf compiler runs the `protoc-gen-java_gapic` shell script (a wrapper of java command wit…
180 …2. Run the command to build a client library, e.g., `java-monitoring`, with `--subcommands` flag t…
182 bazel build --subcommands //google/monitoring/v3:google-cloud-monitoring-v3-java
184 … command of protobuf compiler invocation with gapic-generator-java plugin (the `darwin_arm64-opt-e…
188 …-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc --experimental_allow_p…
194 …IntelliJ that has gapic-generator-java, add [Remote JVM debug configuration](https://www.jetbrains…
209 File "/home/alicejli/googleapis/WORKSPACE", line 1, column 10, in <toplevel>