use of com.google.api.codegen.config.ProtoInterfaceModel in project toolkit by googleapis.
the class JavaSurfaceNamer method getGrpcContainerTypeName.
/**
* The type name of the Grpc container class. This needs to match what Grpc generates for the
* particular language.
*/
public String getGrpcContainerTypeName(InterfaceModel apiInterface) {
String fullName = JavaModelTypeNameConverter.getGrpcTypeName(((ProtoInterfaceModel) apiInterface).getInterface()).getFullName();
NamePath namePath = getTypeNameConverter().getNamePath(fullName);
String publicClassName = publicClassName(Name.upperCamelKeepUpperAcronyms(namePath.getHead(), "Grpc"));
return qualifiedName(namePath.withHead(publicClassName));
}
Aggregations