Search in sources :

Example 1 with PageStreamingResponseView

use of com.google.api.codegen.configgen.viewmodel.PageStreamingResponseView in project toolkit by googleapis.

the class MethodTransformer method generatePageStreaming.

private void generatePageStreaming(MethodModel method, MethodView.Builder methodView) {
    PageStreamingRequestView request = generatePageStreamingRequest(method);
    if (request == null) {
        return;
    }
    PageStreamingResponseView response = helperTransformer.generatePageStreamingResponse(method);
    if (response == null) {
        return;
    }
    methodView.pageStreaming(PageStreamingView.newBuilder().request(request).response(response).build());
}
Also used : PageStreamingResponseView(com.google.api.codegen.configgen.viewmodel.PageStreamingResponseView) PageStreamingRequestView(com.google.api.codegen.configgen.viewmodel.PageStreamingRequestView)

Aggregations

PageStreamingRequestView (com.google.api.codegen.configgen.viewmodel.PageStreamingRequestView)1 PageStreamingResponseView (com.google.api.codegen.configgen.viewmodel.PageStreamingResponseView)1