21 lines
744 B
Java
21 lines
744 B
Java
|
package io.grpc;
|
||
|
|
||
|
import com.google.common.base.Preconditions;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class InternalMethodDescriptor {
|
||
|
private final InternalKnownTransport transport;
|
||
|
|
||
|
public InternalMethodDescriptor(InternalKnownTransport internalKnownTransport) {
|
||
|
this.transport = (InternalKnownTransport) Preconditions.checkNotNull(internalKnownTransport, "transport");
|
||
|
}
|
||
|
|
||
|
public final Object geRawMethodName(MethodDescriptor<?, ?> methodDescriptor) {
|
||
|
return methodDescriptor.getRawMethodName(this.transport.ordinal());
|
||
|
}
|
||
|
|
||
|
public final void setRawMethodName(MethodDescriptor<?, ?> methodDescriptor, Object obj) {
|
||
|
methodDescriptor.setRawMethodName(this.transport.ordinal(), obj);
|
||
|
}
|
||
|
}
|