/** * Turns this descriptor into a builder. * * @since 1.1.0 */ @CheckReturnValue public Builder<ReqT, RespT> toBuilder() { return toBuilder(requestMarshaller, responseMarshaller); }
/** * Turns this descriptor into a builder. * * @since 1.1.0 */ @CheckReturnValue public Builder<ReqT, RespT> toBuilder() { return toBuilder(requestMarshaller, responseMarshaller); }
private static MethodDescriptor<InputStream, InputStream> toInputStreamMethod( MethodDescriptor<?, ?> method) { return method.toBuilder(IDENTITY_MARSHALLER, IDENTITY_MARSHALLER).build(); }
final MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, Channel next) { final MethodDescriptor<WReqT, WRespT> wrappedMethod = method.toBuilder(reqMarshaller, respMarshaller).build(); final ClientCall<WReqT, WRespT> wrappedCall = interceptor.interceptCall(wrappedMethod, callOptions, next);
final MethodDescriptor<ReqT, RespT> method, CallOptions callOptions, Channel next) { final MethodDescriptor<WReqT, WRespT> wrappedMethod = method.toBuilder(reqMarshaller, respMarshaller).build(); final ClientCall<WReqT, WRespT> wrappedCall = interceptor.interceptCall(wrappedMethod, callOptions, next);
final MethodDescriptor<?, ?> originalMethodDescriptor = definition.getMethodDescriptor(); final MethodDescriptor<T, T> wrappedMethodDescriptor = originalMethodDescriptor.toBuilder(marshaller, marshaller).build(); wrappedDescriptors.add(wrappedMethodDescriptor); wrappedMethods.add(wrapMethod(definition, wrappedMethodDescriptor));
final MethodDescriptor<?, ?> originalMethodDescriptor = definition.getMethodDescriptor(); final MethodDescriptor<T, T> wrappedMethodDescriptor = originalMethodDescriptor.toBuilder(marshaller, marshaller).build(); wrappedDescriptors.add(wrappedMethodDescriptor); wrappedMethods.add(wrapMethod(definition, wrappedMethodDescriptor));