use of com.google.api.codegen.viewmodel.GrpcEnumValueDocView in project toolkit by googleapis.
the class GrpcElementDocTransformer method generateEnumValueDocs.
private List<GrpcEnumValueDocView> generateEnumValueDocs(SurfaceNamer namer, EnumType enumElement) {
ImmutableList.Builder<GrpcEnumValueDocView> valueDocs = ImmutableList.builder();
for (EnumValue value : enumElement.getValues()) {
GrpcEnumValueDocView.Builder doc = GrpcEnumValueDocView.newBuilder();
doc.name(value.getSimpleName());
doc.number(value.getNumber());
doc.lines(namer.getDocLines(GapicParser.getDocString(value)));
valueDocs.add(doc.build());
}
return valueDocs.build();
}
Aggregations