diff --git a/api/src/main/java/io/grpc/CallOptions.java b/api/src/main/java/io/grpc/CallOptions.java index 4b180c56e0..87493d2ba0 100644 --- a/api/src/main/java/io/grpc/CallOptions.java +++ b/api/src/main/java/io/grpc/CallOptions.java @@ -138,13 +138,12 @@ public final class CallOptions { /** * Sets the compression to use for the call. The compressor must be a valid name known in the - * {@link CompressorRegistry}. + * {@link CompressorRegistry}. By default, the "gzip" compressor will be available. * *
It is only safe to call this if the server supports the compression format chosen. There is
* no negotiation performed; if the server does not support the compression chosen, the call will
* fail.
*/
- @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1704")
public CallOptions withCompression(@Nullable String compressorName) {
Builder builder = toBuilder(this);
builder.compressorName = compressorName;
@@ -207,7 +206,6 @@ public final class CallOptions {
/**
* Returns the compressor's name.
*/
- @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1704")
@Nullable
public String getCompressor() {
return compressorName;
diff --git a/api/src/main/java/io/grpc/ServerCall.java b/api/src/main/java/io/grpc/ServerCall.java
index 40bcd2f371..bf0e6da8ae 100644
--- a/api/src/main/java/io/grpc/ServerCall.java
+++ b/api/src/main/java/io/grpc/ServerCall.java
@@ -189,16 +189,15 @@ public abstract class ServerCall It is safe to call this even if the client does not support the compression format chosen.
* The implementation will handle negotiation with the client and may fall back to no compression.
@@ -206,7 +205,6 @@ public abstract class ServerCall> {
/**
* Set's the compressor name to use for the call. It is the responsibility of the application
* to make sure the server supports decoding the compressor picked by the client. To be clear,
- * this is the compressor used by the stub to compress messages to the server. To get
- * compressed responses from the server, set the appropriate {@link io.grpc.DecompressorRegistry}
- * on the {@link io.grpc.ManagedChannelBuilder}.
+ * this is the compressor used by the stub to compress messages to the server.
*
* @since 1.0.0
* @param compressorName the name (e.g. "gzip") of the compressor to use.
*/
- @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1704")
public final S withCompression(String compressorName) {
return build(channel, callOptions.withCompression(compressorName));
}