Skip to content

Commit 30ce14a

Browse files
committed
feat(generator): add JSpecify nullable annotations
1 parent 47a2834 commit 30ce14a

915 files changed

Lines changed: 2296 additions & 312 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/showcase.yaml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -115,46 +115,13 @@ jobs:
115115
env:
116116
BUILD_SUBDIR: sdk-platform-java
117117
JOB_TYPE: install
118-
- uses: actions/setup-go@v5
119-
with:
120-
go-version: 'stable'
121-
- name: Install protoc
122-
run: |
123-
set -e
124-
VERSION="33.2"
125-
curl -fsSL --retry 5 --retry-delay 15 -o /tmp/protoc.zip "https://github.com/protocolbuffers/protobuf/releases/download/v$VERSION/protoc-$VERSION-linux-x86_64.zip"
126-
cd /usr/local
127-
sudo unzip -o /tmp/protoc.zip
128-
protoc --version
129-
- uses: actions/setup-python@v5
130-
with:
131-
python-version: "3.12"
132-
cache: 'pip'
133-
- name: Install Librarian and tools
134-
env:
135-
PYTHONPATH: ${{ github.workspace }}/sdk-platform-java/hermetic_build/library_generation/owlbot
136-
run: |
137-
V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
138-
echo "Installing librarian version $V"
139-
go install github.com/googleapis/librarian/cmd/librarian@$V
140-
librarian install
141-
- name: Setup Java 17 for Golden Tests
142-
uses: actions/setup-java@v4
143-
with:
144-
java-version: 17
145-
distribution: temurin
146118
- name: Showcase golden tests
147119
working-directory: java-showcase
148120
run: |
149121
mvn test \
150122
-P enable-golden-tests \
151123
--batch-mode \
152124
--no-transfer-progress
153-
- name: Restore Matrix Java
154-
uses: actions/setup-java@v4
155-
with:
156-
java-version: ${{ matrix.java }}
157-
distribution: temurin
158125
- name: Parse showcase version
159126
working-directory: java-showcase/gapic-showcase
160127
run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV"

java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<version>2.95.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-accessapproval:current} -->
1414
</parent>
1515
<dependencies>
16+
<dependency>
17+
<groupId>org.jspecify</groupId>
18+
<artifactId>jspecify</artifactId>
19+
</dependency>
1620
<dependency>
1721
<groupId>com.google.protobuf</groupId>
1822
<artifactId>protobuf-java</artifactId>

java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<version>1.95.0-SNAPSHOT</version><!-- {x-version-update:proto-google-identity-accesscontextmanager-v1:current} -->
1414
</parent>
1515
<dependencies>
16+
<dependency>
17+
<groupId>org.jspecify</groupId>
18+
<artifactId>jspecify</artifactId>
19+
</dependency>
1620
<dependency>
1721
<groupId>com.google.protobuf</groupId>
1822
<artifactId>protobuf-java</artifactId>

java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<version>1.95.0-SNAPSHOT</version><!-- {x-version-update:proto-google-identity-accesscontextmanager-v1:current} -->
1414
</parent>
1515
<dependencies>
16+
<dependency>
17+
<groupId>org.jspecify</groupId>
18+
<artifactId>jspecify</artifactId>
19+
</dependency>
1620
<dependency>
1721
<groupId>com.google.protobuf</groupId>
1822
<artifactId>protobuf-java</artifactId>

java-admanager/proto-ad-manager-v1/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<version>0.53.0-SNAPSHOT</version><!-- {x-version-update:ad-manager:current} -->
1414
</parent>
1515
<dependencies>
16+
<dependency>
17+
<groupId>org.jspecify</groupId>
18+
<artifactId>jspecify</artifactId>
19+
</dependency>
1620
<dependency>
1721
<groupId>com.google.protobuf</groupId>
1822
<artifactId>protobuf-java</artifactId>

java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<version>0.83.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-advisorynotifications:current} -->
1414
</parent>
1515
<dependencies>
16+
<dependency>
17+
<groupId>org.jspecify</groupId>
18+
<artifactId>jspecify</artifactId>
19+
</dependency>
1620
<dependency>
1721
<groupId>com.google.protobuf</groupId>
1822
<artifactId>protobuf-java</artifactId>

java-agentregistry/proto-google-cloud-agentregistry-v1/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<version>0.1.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-agentregistry:current} -->
1414
</parent>
1515
<dependencies>
16+
<dependency>
17+
<groupId>org.jspecify</groupId>
18+
<artifactId>jspecify</artifactId>
19+
</dependency>
1620
<dependency>
1721
<groupId>com.google.protobuf</groupId>
1822
<artifactId>protobuf-java</artifactId>

java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<version>3.95.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-aiplatform:current} -->
1414
</parent>
1515
<dependencies>
16+
<dependency>
17+
<groupId>org.jspecify</groupId>
18+
<artifactId>jspecify</artifactId>
19+
</dependency>
1620
<dependency>
1721
<groupId>com.google.protobuf</groupId>
1822
<artifactId>protobuf-java</artifactId>

java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<version>3.95.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-aiplatform:current} -->
1414
</parent>
1515
<dependencies>
16+
<dependency>
17+
<groupId>org.jspecify</groupId>
18+
<artifactId>jspecify</artifactId>
19+
</dependency>
1620
<dependency>
1721
<groupId>com.google.protobuf</groupId>
1822
<artifactId>protobuf-java</artifactId>

java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<version>0.72.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-alloydb-connectors:current} -->
1414
</parent>
1515
<dependencies>
16+
<dependency>
17+
<groupId>org.jspecify</groupId>
18+
<artifactId>jspecify</artifactId>
19+
</dependency>
1620
<dependency>
1721
<groupId>com.google.protobuf</groupId>
1822
<artifactId>protobuf-java</artifactId>

0 commit comments

Comments
 (0)