Skip to content

Commit b1a383b

Browse files
committed
feat(gax): widen ClientContext getInternalHeaders and setInternalHeaders for stub delegation
1 parent b1c9dd9 commit b1a383b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/ClientContext.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import com.google.api.client.util.Strings;
3636
import com.google.api.core.ApiClock;
3737
import com.google.api.core.BetaApi;
38+
import com.google.api.core.InternalApi;
3839
import com.google.api.core.NanoClock;
3940
import com.google.api.core.ObsoleteApi;
4041
import com.google.api.gax.core.BackgroundResource;
@@ -96,7 +97,8 @@ public abstract class ClientContext {
9697

9798
public abstract Map<String, String> getHeaders();
9899

99-
protected abstract Map<String, String> getInternalHeaders();
100+
@InternalApi("For use by generated service stubs only")
101+
public abstract Map<String, String> getInternalHeaders();
100102

101103
public abstract ApiClock getClock();
102104

@@ -416,7 +418,8 @@ public abstract static class Builder {
416418

417419
public abstract Builder setHeaders(Map<String, String> headers);
418420

419-
protected abstract Builder setInternalHeaders(Map<String, String> headers);
421+
@InternalApi("For use by generated service stubs only")
422+
public abstract Builder setInternalHeaders(Map<String, String> headers);
420423

421424
public abstract Builder setClock(ApiClock clock);
422425

0 commit comments

Comments
 (0)