package io.grpc; /* loaded from: classes6.dex */ public final class ServerMethodDefinition { private final ServerCallHandler handler; private final MethodDescriptor method; private ServerMethodDefinition(MethodDescriptor methodDescriptor, ServerCallHandler serverCallHandler) { this.method = methodDescriptor; this.handler = serverCallHandler; } public static ServerMethodDefinition create(MethodDescriptor methodDescriptor, ServerCallHandler serverCallHandler) { return new ServerMethodDefinition<>(methodDescriptor, serverCallHandler); } public final ServerMethodDefinition withServerCallHandler(ServerCallHandler serverCallHandler) { return new ServerMethodDefinition<>(this.method, serverCallHandler); } public final ServerCallHandler getServerCallHandler() { return this.handler; } public final MethodDescriptor getMethodDescriptor() { return this.method; } }