what-the-bank/sources/io/grpc/InternalMethodDescriptor.java

21 lines
744 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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);
}
}