use of com.google.api.codegen.ProtoFileView in project toolkit by googleapis.
the class NodeJSGapicSurfaceDocTransformer method transform.
@Override
public List<ViewModel> transform(ApiModel apiModel, GapicProductConfig productConfig) {
Model model = ((ProtoApiModel) apiModel).getProtoModel();
ImmutableList.Builder<ViewModel> surfaceDocs = ImmutableList.builder();
for (ProtoFile file : new ProtoFileView().getElementIterable(model)) {
surfaceDocs.add(generateDoc(file, productConfig));
}
return surfaceDocs.build();
}
use of com.google.api.codegen.ProtoFileView in project toolkit by googleapis.
the class RubyGapicSurfaceDocTransformer method transform.
@Override
public List<ViewModel> transform(ApiModel model, GapicProductConfig productConfig) {
ImmutableList.Builder<ViewModel> surfaceDocs = ImmutableList.builder();
for (ProtoFile file : new ProtoFileView().getElementIterable(((ProtoApiModel) model).getProtoModel())) {
surfaceDocs.add(generateDoc(file, productConfig));
}
surfaceDocs.add(generateOverview(model, productConfig));
return surfaceDocs.build();
}
Aggregations