Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

Commit 9f15fea

Browse files
authored
feat: GA Gax HttpJson (#1264)
* feat: Remove @BetaApi for certain httpjson classes * chore: Fix formatting issues * chore: Fix formatting issues * chore: Remove a few more @BetaApi annotations * chore: Fix format issues * chore: Revert BetaApi annotation for extraHeaders in gax * chore: Update BetaApi annotations for subclasses * chore: Update release please version * chore: Update all dependencies to new gax-httpjson version * chore: Update x-version-update tag to be gax-version
1 parent 9ff8595 commit 9f15fea

30 files changed

Lines changed: 7 additions & 65 deletions

coverage-report/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<dependency>
4242
<groupId>com.google.api</groupId>
4343
<artifactId>gax-httpjson</artifactId>
44-
<version>0.114.1-SNAPSHOT</version> <!-- {x-version-update:gax-httpjson:current} -->
44+
<version>2.29.1-SNAPSHOT</version> <!-- {x-version-update:gax:current} -->
4545
</dependency>
4646
<dependency>
4747
<groupId>com.google.api</groupId>

gax-java/dependencies.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ version.gax_grpc=2.29.1-SNAPSHOT
1717
version.gax_bom=2.29.1-SNAPSHOT
1818
# {x-version-update-end}
1919
# {x-version-update-start:gax-httpjson:current}
20-
version.gax_httpjson=0.114.1-SNAPSHOT
20+
version.gax_httpjson=2.29.1-SNAPSHOT
2121
# {x-version-update-end}
2222

2323
# Versions for dependencies which actual artifacts differ between Bazel and Gradle.

gax-java/gax-bom/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,19 @@
7979
<dependency>
8080
<groupId>com.google.api</groupId>
8181
<artifactId>gax-httpjson</artifactId>
82-
<version>0.114.1-SNAPSHOT</version><!-- {x-version-update:gax-httpjson:current} -->
82+
<version>2.29.1-SNAPSHOT</version><!-- {x-version-update:gax:current} -->
8383
</dependency>
8484
<dependency>
8585
<groupId>com.google.api</groupId>
8686
<artifactId>gax-httpjson</artifactId>
87-
<version>0.114.1-SNAPSHOT</version><!-- {x-version-update:gax-httpjson:current} -->
87+
<version>2.29.1-SNAPSHOT</version><!-- {x-version-update:gax:current} -->
8888
<type>test-jar</type>
8989
<classifier>testlib</classifier>
9090
</dependency>
9191
<dependency>
9292
<groupId>com.google.api</groupId>
9393
<artifactId>gax-httpjson</artifactId>
94-
<version>0.114.1-SNAPSHOT</version><!-- {x-version-update:gax-httpjson:current} -->
94+
<version>2.29.1-SNAPSHOT</version><!-- {x-version-update:gax:current} -->
9595
<classifier>testlib</classifier>
9696
</dependency>
9797
</dependencies>

gax-java/gax-httpjson/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44

55
<artifactId>gax-httpjson</artifactId>
6-
<version>0.114.1-SNAPSHOT</version> <!-- {x-version-update:gax-httpjson:current} -->
6+
<version>2.29.1-SNAPSHOT</version> <!-- {x-version-update:gax:current} -->
77
<packaging>jar</packaging>
88
<name>GAX (Google Api eXtensions) for Java (HTTP JSON)</name>
99
<description>Google Api eXtensions for Java (HTTP JSON)</description>

gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/ApiMethodDescriptor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@
2929
*/
3030
package com.google.api.gax.httpjson;
3131

32-
import com.google.api.core.BetaApi;
3332
import com.google.auto.value.AutoValue;
3433
import javax.annotation.Nullable;
3534

36-
@BetaApi
3735
@AutoValue
3836
/* Method descriptor for messages to be transmitted over HTTP. */
3937
public abstract class ApiMethodDescriptor<RequestT, ResponseT> {

gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/ForwardingHttpJsonClientCall.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@
2929
*/
3030
package com.google.api.gax.httpjson;
3131

32-
import com.google.api.core.BetaApi;
3332
import javax.annotation.Nullable;
3433

3534
/**
3635
* A {@link HttpJsonClientCall} which forwards all of its methods to another {@link
3736
* HttpJsonClientCall}.
3837
*/
39-
@BetaApi
4038
public abstract class ForwardingHttpJsonClientCall<RequestT, ResponseT>
4139
extends HttpJsonClientCall<RequestT, ResponseT> {
4240

gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/ForwardingHttpJsonClientCallListener.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,10 @@
3030

3131
package com.google.api.gax.httpjson;
3232

33-
import com.google.api.core.BetaApi;
34-
3533
/**
3634
* A {@link HttpJsonClientCall.Listener} which forwards all of its methods to another {@link
3735
* HttpJsonClientCall.Listener}.
3836
*/
39-
@BetaApi
4037
public abstract class ForwardingHttpJsonClientCallListener<ResponseT>
4138
extends HttpJsonClientCall.Listener<ResponseT> {
4239

gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonCallContext.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
* copies of the object, but with one field changed. The immutability and thread safety of the
6060
* arguments solely depends on the arguments themselves.
6161
*/
62-
@BetaApi("Reference ApiCallContext instead - this class is likely to experience breaking changes")
6362
public final class HttpJsonCallContext implements ApiCallContext {
6463
private final HttpJsonChannel channel;
6564
private final HttpJsonCallOptions callOptions;

gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonCallOptions.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
*/
3030
package com.google.api.gax.httpjson;
3131

32-
import com.google.api.core.BetaApi;
3332
import com.google.auth.Credentials;
3433
import com.google.auto.value.AutoValue;
3534
import com.google.protobuf.TypeRegistry;
@@ -38,7 +37,6 @@
3837
import org.threeten.bp.Instant;
3938

4039
/** Options for an http-json call, including deadline and credentials. */
41-
@BetaApi
4240
@AutoValue
4341
public abstract class HttpJsonCallOptions {
4442
public static final HttpJsonCallOptions DEFAULT = newBuilder().build();

gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonChannel.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@
2929
*/
3030
package com.google.api.gax.httpjson;
3131

32-
import com.google.api.core.BetaApi;
33-
3432
/** HttpJsonChannel contains the functionality to issue http-json calls. */
35-
@BetaApi
3633
public interface HttpJsonChannel {
3734
<RequestT, ResponseT> HttpJsonClientCall<RequestT, ResponseT> newCall(
3835
ApiMethodDescriptor<RequestT, ResponseT> methodDescriptor, HttpJsonCallOptions callOptions);

0 commit comments

Comments
 (0)