All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.JavaServer.txt.PowerApiInterface.template.scala Maven / Gradle / Ivy

Go to download

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 scala.language.adhocExtensions
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: 62ca6c8cfd2ec359d5a2678c7c9c98324afb00ea
                  MATRIX: 734->364|880->417|908->419|919->422|989->471|1017->472|1053->481|1069->488|1102->500|1408->779|1443->793|1480->802|1509->803|1539->807|1585->837|1625->839|1655->843|1698->865|1727->867|1761->880|1790->882|1836->907|1865->908|1922->935|1953->939|2003->962|2019->969|2049->978|2137->1039|2166->1040|2198->1046|2252->1084|2292->1086|2326->1093|2387->1127|2432->1151|2462->1154|2481->1164|2507->1169|2536->1170|2566->1173|2585->1183|2612->1188|2649->1195|2679->1198|2707->1199|2735->1200|2763->1201
                  LINES: 17->14|22->15|23->16|23->16|23->16|24->17|24->17|24->17|24->17|35->28|35->28|35->28|35->28|36->29|36->29|36->29|37->30|37->30|37->30|37->30|37->30|37->30|37->30|38->31|40->33|40->33|40->33|40->33|43->36|43->36|44->37|44->37|44->37|45->38|45->38|45->38|45->38|45->38|45->38|45->38|45->38|45->38|45->38|46->39|47->40|47->40|48->41|48->41
                  -- GENERATED --
              */
          




© 2015 - 2025 Weber Informatics LLC | Privacy Policy