File tree Expand file tree Collapse file tree 6 files changed +0
-38
lines changed
main/java/com/google/api/gax/grpc
test/java/com/google/api/gax/grpc/testing
gax-httpjson/src/main/java/com/google/api/gax/httpjson
main/java/com/google/api/gax/rpc
test/java/com/google/api/gax/rpc Expand file tree Collapse file tree 6 files changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,6 @@ public TransportChannelProvider withEndpoint(String endpoint) {
228228 return toBuilder ().setEndpoint (endpoint ).build ();
229229 }
230230
231- @ Override
232231 public TransportChannelProvider setAllowHardBoundTokens (ArrayList <String > allowedValues ) {
233232 return toBuilder ().setAllowHardBoundTokenTypes (allowedValues ).build ();
234233 }
Original file line number Diff line number Diff line change 4747import io .grpc .MethodDescriptor ;
4848import io .grpc .inprocess .InProcessChannelBuilder ;
4949import java .io .IOException ;
50- import java .util .ArrayList ;
5150import java .util .List ;
5251import java .util .Map ;
5352import java .util .concurrent .CopyOnWriteArrayList ;
@@ -107,12 +106,6 @@ public TransportChannelProvider withEndpoint(String endpoint) {
107106 throw new UnsupportedOperationException ("LocalChannelProvider doesn't need an endpoint" );
108107 }
109108
110- @ Override
111- public TransportChannelProvider setAllowHardBoundTokens (ArrayList <String > allowedValues ) {
112- throw new UnsupportedOperationException (
113- "LocalChannelProvider doesn't support hard-bound tokens" );
114- }
115-
116109 @ Override
117110 @ BetaApi ("The surface for customizing pool size is not stable yet and may change in the future." )
118111 public boolean acceptsPoolSize () {
Original file line number Diff line number Diff line change 4242import java .io .IOException ;
4343import java .security .GeneralSecurityException ;
4444import java .security .KeyStore ;
45- import java .util .ArrayList ;
4645import java .util .Map ;
4746import java .util .concurrent .Executor ;
4847import java .util .concurrent .ScheduledExecutorService ;
@@ -140,12 +139,6 @@ public TransportChannelProvider withPoolSize(int size) {
140139 "InstantiatingHttpJsonChannelProvider doesn't allow pool size customization" );
141140 }
142141
143- @ Override
144- public TransportChannelProvider setAllowHardBoundTokens (ArrayList <String > allowedValues ) {
145- throw new UnsupportedOperationException (
146- "InstantiatingHttpJsonChannelProvider doesn't support hard-bound tokens" );
147- }
148-
149142 @ Override
150143 public String getTransportName () {
151144 return HttpJsonTransportChannel .getHttpJsonTransportName ();
Original file line number Diff line number Diff line change 3333import com .google .auth .Credentials ;
3434import com .google .common .base .Preconditions ;
3535import java .io .IOException ;
36- import java .util .ArrayList ;
3736import java .util .Map ;
3837import java .util .concurrent .Executor ;
3938import java .util .concurrent .ScheduledExecutorService ;
@@ -69,12 +68,6 @@ public FixedTransportChannelProvider withExecutor(Executor executor) {
6968 "FixedTransportChannelProvider doesn't need an executor" );
7069 }
7170
72- @ Override
73- public TransportChannelProvider setAllowHardBoundTokens (ArrayList <String > allowedValues ) {
74- throw new UnsupportedOperationException (
75- "FixedTransportChannelProvider doesn't support hard-bound tokens" );
76- }
77-
7871 @ Override
7972 public boolean needsHeaders () {
8073 return false ;
Original file line number Diff line number Diff line change 3333import com .google .api .core .InternalExtensionOnly ;
3434import com .google .auth .Credentials ;
3535import java .io .IOException ;
36- import java .util .ArrayList ;
3736import java .util .Map ;
3837import java .util .concurrent .Executor ;
3938import java .util .concurrent .ScheduledExecutorService ;
@@ -98,9 +97,6 @@ public interface TransportChannelProvider {
9897 */
9998 TransportChannelProvider withEndpoint (String endpoint );
10099
101- /** Sets the allowed hard bound token types. */
102- TransportChannelProvider setAllowHardBoundTokens (ArrayList <String > allowedValues );
103-
104100 /**
105101 * Reports whether this provider allows pool size customization.
106102 *
Original file line number Diff line number Diff line change 6363import com .google .common .truth .Truth ;
6464import java .io .IOException ;
6565import java .net .URI ;
66- import java .util .ArrayList ;
6766import java .util .Collections ;
6867import java .util .List ;
6968import java .util .Map ;
@@ -201,17 +200,6 @@ public boolean acceptsPoolSize() {
201200 return false ;
202201 }
203202
204- @ Override
205- public TransportChannelProvider setAllowHardBoundTokens (ArrayList <String > allowedValues ) {
206- return new FakeTransportProvider (
207- this .transport ,
208- this .executor ,
209- this .shouldAutoClose ,
210- this .headers ,
211- this .credentials ,
212- this .endpoint );
213- }
214-
215203 @ Override
216204 public TransportChannelProvider withPoolSize (int size ) {
217205 throw new UnsupportedOperationException (
You can’t perform that action at this time.
0 commit comments