Skip to content

Commit f662561

Browse files
authored
doc: add doc for manual re-generation of cab-token-generator protobuf classes (#1886)
1 parent bec0ece commit f662561

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Code under `cab-token-generator/java/com/google/auth/credentialaccessboundary/protobuf` are generated manually.
2+
To re-generate, follow steps below:
3+
4+
Determine the protoc version to use for generate, this guide will use v33.2 as example.
5+
Steps to generate the java code using protoc 33.2.
6+
1. Download these files from https://github.com/protocolbuffers/protobuf/releases/tag/v33.2
7+
```
8+
src/google/protobuf/duration.proto
9+
src/google/protobuf/struct.proto
10+
src/google/protobuf/timestamp.proto
11+
```
12+
2. Create a workspace in g3, copy the above files in `google/protobuf` directory.
13+
3. Run the following command to generate java code:
14+
```sh
15+
# in google3 directory
16+
~/.local/bin/protoc --java_out ~/Downloads/java-output -I. cloud/identity/unifiedauth/proto/client_side_access_boundary.proto
17+
```

0 commit comments

Comments
 (0)