templates.JavaServer.txt.PowerApiInterface.template.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pekko-grpc-codegen_2.12 Show documentation
Show all versions of pekko-grpc-codegen_2.12 Show documentation
Apache Pekko gRPC - Support for building streaming gRPC servers and clients on top of Pekko Streams.
The newest version!
package templates.JavaServer.txt
import _root_.play.twirl.api.TwirlFeatureImports._
import _root_.play.twirl.api.TwirlHelperImports._
import _root_.play.twirl.api.Html
import _root_.play.twirl.api.JavaScript
import _root_.play.twirl.api.Txt
import _root_.play.twirl.api.Xml
object PowerApiInterface extends _root_.play.twirl.api.BaseScalaTemplate[play.twirl.api.TxtFormat.Appendable,_root_.play.twirl.api.Format[play.twirl.api.TxtFormat.Appendable]](play.twirl.api.TxtFormat) with _root_.play.twirl.api.Template1[org.apache.pekko.grpc.gen.javadsl.Service,play.twirl.api.TxtFormat.Appendable] {
/*
* Copyright (C) 2018-2021 Lightbend Inc.
*/
def apply/*14.2*/(service: org.apache.pekko.grpc.gen.javadsl.Service):play.twirl.api.TxtFormat.Appendable = {
_display_ {
{
Seq[Any](format.raw/*15.1*/("""
"""),_display_(/*16.2*/org/*16.5*/.apache.pekko.grpc.gen.Constants.DoNotEditComment),format.raw/*16.54*/("""
"""),format.raw/*17.1*/("""package """),_display_(/*17.10*/service/*17.17*/.packageName),format.raw/*17.29*/(""";
import org.apache.pekko.grpc.ProtobufSerializer;
import org.apache.pekko.grpc.javadsl.GoogleProtobufSerializer;
import org.apache.pekko.grpc.javadsl.Metadata;
import org.apache.pekko.grpc.PekkoGrpcGenerated;
/*
* Generated by Pekko gRPC. DO NOT EDIT.
*/
public interface """),_display_(/*28.19*/{service.name}),format.raw/*28.33*/("""PowerApi """),format.raw/*28.42*/("""{"""),format.raw/*28.43*/("""
"""),_display_(/*29.4*/for(method <- service.methods) yield /*29.34*/ {_display_(Seq[Any](format.raw/*29.36*/("""
"""),_display_(/*30.4*/{method.getReturnType}),format.raw/*30.26*/(""" """),_display_(/*30.28*/{method.name}),format.raw/*30.41*/("""("""),_display_(/*30.43*/{method.getParameterType}),format.raw/*30.68*/(""" """),format.raw/*30.69*/("""in, Metadata metadata);
""")))}),format.raw/*31.4*/("""
"""),format.raw/*33.3*/("""static String name = """"),_display_(/*33.26*/service/*33.33*/.grpcName),format.raw/*33.42*/("""";
@PekkoGrpcGenerated
public static class Serializers """),format.raw/*36.35*/("""{"""),format.raw/*36.36*/("""
"""),_display_(/*37.6*/for(serializer <- service.serializers) yield /*37.44*/ {_display_(Seq[Any](format.raw/*37.46*/("""
"""),format.raw/*38.7*/("""public static ProtobufSerializer<"""),_display_(/*38.41*/{serializer.messageType}),format.raw/*38.65*/("""> """),_display_(/*38.68*/serializer/*38.78*/.name),format.raw/*38.83*/(""" """),format.raw/*38.84*/("""= """),_display_(/*38.87*/serializer/*38.97*/.init),format.raw/*38.102*/(""";
""")))}),format.raw/*39.6*/("""
"""),format.raw/*40.3*/("""}"""),format.raw/*40.4*/("""
"""),format.raw/*41.1*/("""}"""),format.raw/*41.2*/("""
"""))
}
}
}
def render(service:org.apache.pekko.grpc.gen.javadsl.Service): play.twirl.api.TxtFormat.Appendable = apply(service)
def f:((org.apache.pekko.grpc.gen.javadsl.Service) => play.twirl.api.TxtFormat.Appendable) = (service) => apply(service)
def ref: this.type = this
}
/*
-- GENERATED --
SOURCE: codegen/src/main/twirl/templates/JavaServer/PowerApiInterface.scala.txt
HASH: ebe50725cb1dd8e5939c4ce3a10ff064bf4ede3c
MATRIX: 696->364|842->417|870->419|881->422|951->471|979->472|1015->481|1031->488|1064->500|1370->779|1405->793|1442->802|1471->803|1501->807|1547->837|1587->839|1617->843|1660->865|1689->867|1723->880|1752->882|1798->907|1827->908|1884->935|1915->939|1965->962|1981->969|2011->978|2099->1039|2128->1040|2160->1046|2214->1084|2254->1086|2288->1093|2349->1127|2394->1151|2424->1154|2443->1164|2469->1169|2498->1170|2528->1173|2547->1183|2574->1188|2611->1195|2641->1198|2669->1199|2697->1200|2725->1201
LINES: 16->14|21->15|22->16|22->16|22->16|23->17|23->17|23->17|23->17|34->28|34->28|34->28|34->28|35->29|35->29|35->29|36->30|36->30|36->30|36->30|36->30|36->30|36->30|37->31|39->33|39->33|39->33|39->33|42->36|42->36|43->37|43->37|43->37|44->38|44->38|44->38|44->38|44->38|44->38|44->38|44->38|44->38|44->38|45->39|46->40|46->40|47->41|47->41
-- GENERATED --
*/
© 2015 - 2025 Weber Informatics LLC | Privacy Policy