mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 17:56:46 +00:00
feature/grpc_basic_feature : basic feature
This commit is contained in:
parent
f2ee1c0023
commit
02db91cb20
@ -393,7 +393,28 @@
|
||||
<artifactId>stripe-java</artifactId>
|
||||
<version>12.1.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- grpc related begin-->
|
||||
<dependency>
|
||||
<groupId>com.thesamet.scalapb</groupId>
|
||||
<artifactId>scalapb-runtime-grpc_${scala.version}</artifactId>
|
||||
<version>0.8.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.grpc</groupId>
|
||||
<artifactId>grpc-all</artifactId>
|
||||
<version>1.25.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.netty</groupId>
|
||||
<artifactId>netty-tcnative-boringssl-static</artifactId>
|
||||
<version>2.0.27.Final</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.asynchttpclient</groupId>
|
||||
<artifactId>async-http-client</artifactId>
|
||||
<version>2.10.4</version>
|
||||
</dependency>
|
||||
<!-- grpc related end-->
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
@ -593,6 +614,27 @@
|
||||
<release>${java.version}</release>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!--grpc related plugin begin-->
|
||||
<plugin>
|
||||
<groupId>net.catte</groupId>
|
||||
<artifactId>scalapb-maven-plugin</artifactId>
|
||||
<version>1.2</version>
|
||||
<configuration>
|
||||
<javaOutput>false</javaOutput>
|
||||
<inputDirectory>${basedir}/src/main/resources/protobuf</inputDirectory>
|
||||
<outputDirectory>${basedir}/src/main/scala</outputDirectory>
|
||||
<grpc>true</grpc>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>compile</goal>
|
||||
</goals>
|
||||
<phase>generate-sources</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!--grpc related plugin end-->
|
||||
</plugins>
|
||||
</build>
|
||||
<reporting>
|
||||
|
||||
@ -110,6 +110,8 @@ import net.liftweb.sitemap.Loc._
|
||||
import net.liftweb.sitemap._
|
||||
import net.liftweb.util.Helpers._
|
||||
import net.liftweb.util.{Helpers, Props, Schedule, _}
|
||||
import scalapb.demo.HelloWorldServer
|
||||
import scala.concurrent.ExecutionContext
|
||||
|
||||
|
||||
/**
|
||||
@ -664,4 +666,8 @@ object ToSchemify {
|
||||
DynamicData,
|
||||
AccountIdMapping,
|
||||
)++ APIBuilder_Connector.allAPIBuilderModels
|
||||
|
||||
// start grpc server
|
||||
val server = new HelloWorldServer(ExecutionContext.global)
|
||||
server.start()
|
||||
}
|
||||
|
||||
@ -267,8 +267,12 @@ trait APIMethods200 {
|
||||
Catalogs(notCore, notPSD2, notOBWG),
|
||||
List(apiTagAccount, apiTagPrivateData, apiTagPublicData, apiTagNewStyle)
|
||||
)
|
||||
|
||||
|
||||
def processAccounts(privateViewsUserCanAccessAtOneBank: List[View], availablePrivateAccounts: List[BankAccount]) = {
|
||||
privateBankAccountBasicListToJson(availablePrivateAccounts, privateViewsUserCanAccessAtOneBank)
|
||||
}
|
||||
lazy val getPrivateAccountsAtOneBank : OBPEndpoint = {
|
||||
|
||||
case "banks" :: BankId(bankId) :: "accounts" :: Nil JsonGet req => {
|
||||
cc =>
|
||||
for{
|
||||
@ -277,7 +281,7 @@ trait APIMethods200 {
|
||||
} yield {
|
||||
val privateViewsUserCanAccessAtOneBank = Views.views.vend.privateViewsUserCanAccess(u).filter(_.bankId == bankId)
|
||||
val availablePrivateAccounts = bank.privateAccounts(privateViewsUserCanAccessAtOneBank)
|
||||
(privateBankAccountBasicListToJson(availablePrivateAccounts, privateViewsUserCanAccessAtOneBank), HttpCode.`200`(callContext))
|
||||
(processAccounts(privateViewsUserCanAccessAtOneBank, availablePrivateAccounts), HttpCode.`200`(callContext))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
29
obp-api/src/main/scala/code/obp/api/Client.scala
Normal file
29
obp-api/src/main/scala/code/obp/api/Client.scala
Normal file
@ -0,0 +1,29 @@
|
||||
package code.obp.api
|
||||
|
||||
import code.obp.grpc.api.{AccountsGrpc, BankIdAccountIdAndUserId, BankIdAccountIdAndUserIdGrpc, BankIdAndAccountId, BankIdGrpc, BankIdUserIdGrpc, BanksJson400Grpc, CoreTransactionsJsonV300Grpc, ObpServiceGrpc}
|
||||
import com.google.protobuf.empty.Empty
|
||||
import io.grpc.{ManagedChannel, ManagedChannelBuilder}
|
||||
import scalapb.demo.HelloWorldServer
|
||||
|
||||
|
||||
object Client extends App {
|
||||
private val channelBuilder = ManagedChannelBuilder.forAddress("127.0.0.1", HelloWorldServer.port)
|
||||
.usePlaintext()
|
||||
.asInstanceOf[ManagedChannelBuilder[_]]
|
||||
val channel: ManagedChannel = channelBuilder.build()
|
||||
|
||||
private val obpService: ObpServiceGrpc.ObpServiceBlockingStub = ObpServiceGrpc.blockingStub(channel)
|
||||
// get all banks
|
||||
private val banks: BanksJson400Grpc = obpService.getBanks(Empty.defaultInstance)
|
||||
println(banks)
|
||||
|
||||
// get accounts according bankId and userId
|
||||
private val bankIdUserIdGrpc = BankIdUserIdGrpc("psd201-bank-y--uk", "4850d4c3-220a-4a72-9d3c-eeeacaf4b63b")
|
||||
private val accounts: AccountsGrpc = obpService.getPrivateAccountsAtOneBank(bankIdUserIdGrpc)
|
||||
println(accounts)
|
||||
|
||||
//get accounts by bankId, accountId and userId
|
||||
private val bankIdAccountIdAndUserId = BankIdAccountIdAndUserIdGrpc("psd201-bank-y--uk", "my_account_id", "4850d4c3-220a-4a72-9d3c-eeeacaf4b63b")
|
||||
private val transactionsJsonV300Grpc: CoreTransactionsJsonV300Grpc = obpService.getCoreTransactionsForBankAccount(bankIdAccountIdAndUserId)
|
||||
println(transactionsJsonV300Grpc)
|
||||
}
|
||||
141
obp-api/src/main/scala/code/obp/api/HelloWorldServer.scala
Normal file
141
obp-api/src/main/scala/code/obp/api/HelloWorldServer.scala
Normal file
@ -0,0 +1,141 @@
|
||||
package scalapb.demo
|
||||
|
||||
import java.util.logging.Logger
|
||||
|
||||
import code.api.util.{CallContext, NewStyle}
|
||||
import code.api.v3_0_0.CoreTransactionsJsonV300
|
||||
import code.api.v4_0_0.{BankJson400, BanksJson400, JSONFactory400, OBPAPI4_0_0}
|
||||
import code.obp.grpc.api.BanksJson400Grpc.{BankJson400Grpc, BankRoutingJsonV121Grpc}
|
||||
import code.obp.grpc.api._
|
||||
import code.views.Views
|
||||
import com.google.protobuf.empty.Empty
|
||||
import com.openbankproject.commons.model._
|
||||
import io.grpc.{Server, ServerBuilder}
|
||||
import net.liftweb.common.Full
|
||||
import net.liftweb.json.JsonAST.{JField, JObject}
|
||||
import net.liftweb.json.JsonDSL._
|
||||
import net.liftweb.json.{Extraction, JArray}
|
||||
|
||||
import scala.collection.immutable.List
|
||||
import scala.concurrent.ExecutionContext.Implicits.global
|
||||
import scala.concurrent.{ExecutionContext, Future}
|
||||
|
||||
/**
|
||||
* [[https://github.com/grpc/grpc-java/blob/v0.15.0/examples/src/main/java/io/grpc/examples/helloworld/HelloWorldServer.java]]
|
||||
*/
|
||||
object HelloWorldServer {
|
||||
private val logger = Logger.getLogger(classOf[HelloWorldServer].getName)
|
||||
|
||||
def main(args: Array[String] = Array.empty): Unit = {
|
||||
val server = new HelloWorldServer(ExecutionContext.global)
|
||||
server.start()
|
||||
server.blockUntilShutdown()
|
||||
}
|
||||
|
||||
val port = 50051
|
||||
}
|
||||
|
||||
class HelloWorldServer(executionContext: ExecutionContext) { self =>
|
||||
private[this] var server: Server = null
|
||||
def start(): Unit = {
|
||||
|
||||
val serverBuilder = ServerBuilder.forPort(HelloWorldServer.port)
|
||||
.addService(ObpServiceGrpc.bindService(ObpServiceImpl, executionContext))
|
||||
.asInstanceOf[ServerBuilder[_]]
|
||||
server = serverBuilder.build.start;
|
||||
HelloWorldServer.logger.info("Server started, listening on " + HelloWorldServer.port)
|
||||
sys.addShutdownHook {
|
||||
System.err.println("*** shutting down gRPC server since JVM is shutting down")
|
||||
self.stop()
|
||||
System.err.println("*** server shut down")
|
||||
}
|
||||
}
|
||||
|
||||
private def stop(): Unit = {
|
||||
if (server != null) {
|
||||
server.shutdown()
|
||||
}
|
||||
}
|
||||
|
||||
private def blockUntilShutdown(): Unit = {
|
||||
if (server != null) {
|
||||
server.awaitTermination()
|
||||
}
|
||||
}
|
||||
|
||||
object ObpServiceImpl extends ObpServiceGrpc.ObpService {
|
||||
|
||||
implicit val formats = code.api.util.CustomJsonFormats.formats
|
||||
|
||||
override def getBanks(request: Empty): Future[BanksJson400Grpc] = {
|
||||
val callContext: Option[CallContext] = Some(CallContext())
|
||||
NewStyle.function.getBanks(callContext)
|
||||
.map(it => {
|
||||
val (bankList, _) = it
|
||||
val json40: BanksJson400 = JSONFactory400.createBanksJson(bankList)
|
||||
val grpcBanks: List[BankJson400Grpc] = json40.banks.map(bank => {
|
||||
val BankJson400(id, short_name, full_name, logo, website, bank_routings) = bank
|
||||
val bankRoutingGrpcs = bank_routings.map(routings => BankRoutingJsonV121Grpc(routings.scheme, routings.address))
|
||||
BankJson400Grpc(id, short_name, full_name, logo, website, bankRoutingGrpcs)
|
||||
})
|
||||
BanksJson400Grpc(grpcBanks)
|
||||
})
|
||||
}
|
||||
|
||||
override def getPrivateAccountsAtOneBank(request: BankIdUserIdGrpc): Future[AccountsGrpc] = {
|
||||
implicit val toBankExtended = code.model.toBankExtended(_)
|
||||
val callContext: Option[CallContext] = Some(CallContext())
|
||||
val bankId = BankId(request.bankId)
|
||||
val userId = request.userId
|
||||
|
||||
for {
|
||||
(bank, _) <- NewStyle.function.getBank(bankId, callContext)
|
||||
(user, _) <- NewStyle.function.findByUserId(userId, callContext)
|
||||
} yield {
|
||||
val privateViewsUserCanAccessAtOneBank = Views.views.vend.privateViewsUserCanAccess(user).filter(_.bankId == bankId)
|
||||
val availablePrivateAccounts:List[BankAccount] = bank.privateAccounts(privateViewsUserCanAccessAtOneBank)
|
||||
val jValue = OBPAPI4_0_0.Implementations2_0_0.processAccounts(privateViewsUserCanAccessAtOneBank, availablePrivateAccounts)
|
||||
val jArray = JArray(
|
||||
jValue.asInstanceOf[JArray].arr.map(it => {
|
||||
val bankIdJObject: JObject = "bankId" -> (it \ "bank_id")
|
||||
it merge bankIdJObject
|
||||
})
|
||||
)
|
||||
val jObject = JObject(List(JField("accounts", jArray)))
|
||||
val accountsGrpc = jObject.extract[AccountsGrpc]
|
||||
accountsGrpc
|
||||
}
|
||||
}
|
||||
|
||||
override def getBankAccountsBalances(request: BankIdGrpc): Future[AccountsBalancesV310JsonGrpc] = Future {
|
||||
// val callContext: Option[CallContext] = Some(CallContext())
|
||||
// val bankId = BankId(request.value)
|
||||
// val bankIdAccountIds: List[BankIdAccountId] = Nil
|
||||
// for {
|
||||
// (accountsBalances, callContext)<- NewStyle.function.getBankAccountsBalances(bankIdAccountIds, callContext)
|
||||
// }
|
||||
???
|
||||
}
|
||||
|
||||
override def getCoreTransactionsForBankAccount(request: BankIdAccountIdAndUserIdGrpc): Future[CoreTransactionsJsonV300Grpc] = {
|
||||
implicit val toViewExtended = code.model.toViewExtended(_)
|
||||
implicit val toBankAccountExtended = code.model.toBankAccountExtended(_)
|
||||
val callContext: Option[CallContext] = Some(CallContext())
|
||||
val bankId = BankId(request.bankId)
|
||||
val accountId = AccountId(request.accountId)
|
||||
val viewFuture: Future[View] = NewStyle.function.view(ViewId("owner"), BankIdAccountId(bankId, accountId), callContext)
|
||||
for {
|
||||
(user, _) <- NewStyle.function.findByUserId(request.userId, callContext)
|
||||
(bankAccount, callContext) <- NewStyle.function.checkBankAccountExists(bankId, accountId, callContext)
|
||||
view <- NewStyle.function.view(ViewId("owner"), BankIdAccountId(bankAccount.bankId, bankAccount.accountId), callContext)
|
||||
(Full(transactionsCore), callContext) <- bankAccount.getModeratedTransactionsCore(Full(user), view, Nil, callContext)
|
||||
obpCoreTransactions: CoreTransactionsJsonV300 = code.api.v3_0_0.JSONFactory300.createCoreTransactionsJSON(transactionsCore)
|
||||
} yield {
|
||||
val jValue = Extraction.decompose(obpCoreTransactions)
|
||||
val coreTransactionsJsonV300Grpc = jValue.extract[CoreTransactionsJsonV300Grpc]
|
||||
coreTransactionsJsonV300Grpc
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
98
obp-api/src/main/scala/code/obp/grpc/api/AccountIdGrpc.scala
Normal file
98
obp-api/src/main/scala/code/obp/grpc/api/AccountIdGrpc.scala
Normal file
@ -0,0 +1,98 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class AccountIdGrpc(
|
||||
value: _root_.scala.Predef.String = ""
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[AccountIdGrpc] with scalapb.lenses.Updatable[AccountIdGrpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (value != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, value) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = value
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.AccountIdGrpc = {
|
||||
var __value = this.value
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__value = _input__.readString()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.AccountIdGrpc(
|
||||
value = __value
|
||||
)
|
||||
}
|
||||
def withValue(__v: _root_.scala.Predef.String): AccountIdGrpc = copy(value = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = value
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(value)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.AccountIdGrpc
|
||||
}
|
||||
|
||||
object AccountIdGrpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountIdGrpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountIdGrpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.AccountIdGrpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.AccountIdGrpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.AccountIdGrpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.AccountIdGrpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(9)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(9)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.AccountIdGrpc(
|
||||
)
|
||||
implicit class AccountIdGrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.AccountIdGrpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.AccountIdGrpc](_l) {
|
||||
def value: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.value)((c_, f_) => c_.copy(value = f_))
|
||||
}
|
||||
final val VALUE_FIELD_NUMBER = 1
|
||||
}
|
||||
169
obp-api/src/main/scala/code/obp/grpc/api/AccountJSONGrpc.scala
Normal file
169
obp-api/src/main/scala/code/obp/grpc/api/AccountJSONGrpc.scala
Normal file
@ -0,0 +1,169 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class AccountJSONGrpc(
|
||||
id: _root_.scala.Predef.String = "",
|
||||
label: _root_.scala.Predef.String = "",
|
||||
viewsAvailable: _root_.scala.collection.Seq[code.obp.grpc.api.ViewsJSONV121Grpc] = _root_.scala.collection.Seq.empty,
|
||||
bankId: _root_.scala.Predef.String = ""
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[AccountJSONGrpc] with scalapb.lenses.Updatable[AccountJSONGrpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (id != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, id) }
|
||||
if (label != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, label) }
|
||||
viewsAvailable.foreach(viewsAvailable => __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(viewsAvailable.serializedSize) + viewsAvailable.serializedSize)
|
||||
if (bankId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(4, bankId) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = id
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = label
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
viewsAvailable.foreach { __v =>
|
||||
_output__.writeTag(3, 2)
|
||||
_output__.writeUInt32NoTag(__v.serializedSize)
|
||||
__v.writeTo(_output__)
|
||||
};
|
||||
{
|
||||
val __v = bankId
|
||||
if (__v != "") {
|
||||
_output__.writeString(4, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.AccountJSONGrpc = {
|
||||
var __id = this.id
|
||||
var __label = this.label
|
||||
val __viewsAvailable = (_root_.scala.collection.immutable.Vector.newBuilder[code.obp.grpc.api.ViewsJSONV121Grpc] ++= this.viewsAvailable)
|
||||
var __bankId = this.bankId
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__id = _input__.readString()
|
||||
case 18 =>
|
||||
__label = _input__.readString()
|
||||
case 26 =>
|
||||
__viewsAvailable += _root_.scalapb.LiteParser.readMessage(_input__, code.obp.grpc.api.ViewsJSONV121Grpc.defaultInstance)
|
||||
case 34 =>
|
||||
__bankId = _input__.readString()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.AccountJSONGrpc(
|
||||
id = __id,
|
||||
label = __label,
|
||||
viewsAvailable = __viewsAvailable.result(),
|
||||
bankId = __bankId
|
||||
)
|
||||
}
|
||||
def withId(__v: _root_.scala.Predef.String): AccountJSONGrpc = copy(id = __v)
|
||||
def withLabel(__v: _root_.scala.Predef.String): AccountJSONGrpc = copy(label = __v)
|
||||
def clearViewsAvailable = copy(viewsAvailable = _root_.scala.collection.Seq.empty)
|
||||
def addViewsAvailable(__vs: code.obp.grpc.api.ViewsJSONV121Grpc*): AccountJSONGrpc = addAllViewsAvailable(__vs)
|
||||
def addAllViewsAvailable(__vs: TraversableOnce[code.obp.grpc.api.ViewsJSONV121Grpc]): AccountJSONGrpc = copy(viewsAvailable = viewsAvailable ++ __vs)
|
||||
def withViewsAvailable(__v: _root_.scala.collection.Seq[code.obp.grpc.api.ViewsJSONV121Grpc]): AccountJSONGrpc = copy(viewsAvailable = __v)
|
||||
def withBankId(__v: _root_.scala.Predef.String): AccountJSONGrpc = copy(bankId = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = id
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = label
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 3 => viewsAvailable
|
||||
case 4 => {
|
||||
val __t = bankId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(id)
|
||||
case 2 => _root_.scalapb.descriptors.PString(label)
|
||||
case 3 => _root_.scalapb.descriptors.PRepeated(viewsAvailable.map(_.toPMessage)(_root_.scala.collection.breakOut))
|
||||
case 4 => _root_.scalapb.descriptors.PString(bankId)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.AccountJSONGrpc
|
||||
}
|
||||
|
||||
object AccountJSONGrpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountJSONGrpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountJSONGrpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.AccountJSONGrpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.AccountJSONGrpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(2), Nil).asInstanceOf[_root_.scala.collection.Seq[code.obp.grpc.api.ViewsJSONV121Grpc]],
|
||||
__fieldsMap.getOrElse(__fields.get(3), "").asInstanceOf[_root_.scala.Predef.String]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.AccountJSONGrpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.AccountJSONGrpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.collection.Seq[code.obp.grpc.api.ViewsJSONV121Grpc]]).getOrElse(_root_.scala.collection.Seq.empty),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(2)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(2)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
|
||||
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
|
||||
(__number: @_root_.scala.unchecked) match {
|
||||
case 3 => __out = code.obp.grpc.api.ViewsJSONV121Grpc
|
||||
}
|
||||
__out
|
||||
}
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.AccountJSONGrpc(
|
||||
)
|
||||
implicit class AccountJSONGrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.AccountJSONGrpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.AccountJSONGrpc](_l) {
|
||||
def id: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.id)((c_, f_) => c_.copy(id = f_))
|
||||
def label: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.label)((c_, f_) => c_.copy(label = f_))
|
||||
def viewsAvailable: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.Seq[code.obp.grpc.api.ViewsJSONV121Grpc]] = field(_.viewsAvailable)((c_, f_) => c_.copy(viewsAvailable = f_))
|
||||
def bankId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.bankId)((c_, f_) => c_.copy(bankId = f_))
|
||||
}
|
||||
final val ID_FIELD_NUMBER = 1
|
||||
final val LABEL_FIELD_NUMBER = 2
|
||||
final val VIEWS_AVAILABLE_FIELD_NUMBER = 3
|
||||
final val BANK_ID_FIELD_NUMBER = 4
|
||||
}
|
||||
@ -0,0 +1,566 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
/** getBankAccountsBalances
|
||||
*/
|
||||
@SerialVersionUID(0L)
|
||||
final case class AccountsBalancesV310JsonGrpc(
|
||||
accounts: _root_.scala.collection.Seq[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc] = _root_.scala.collection.Seq.empty,
|
||||
overallBalance: scala.Option[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc] = None,
|
||||
overallBalanceDate: _root_.scala.Predef.String = ""
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[AccountsBalancesV310JsonGrpc] with scalapb.lenses.Updatable[AccountsBalancesV310JsonGrpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
accounts.foreach(accounts => __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(accounts.serializedSize) + accounts.serializedSize)
|
||||
if (overallBalance.isDefined) { __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(overallBalance.get.serializedSize) + overallBalance.get.serializedSize }
|
||||
if (overallBalanceDate != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(3, overallBalanceDate) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
accounts.foreach { __v =>
|
||||
_output__.writeTag(1, 2)
|
||||
_output__.writeUInt32NoTag(__v.serializedSize)
|
||||
__v.writeTo(_output__)
|
||||
};
|
||||
overallBalance.foreach { __v =>
|
||||
_output__.writeTag(2, 2)
|
||||
_output__.writeUInt32NoTag(__v.serializedSize)
|
||||
__v.writeTo(_output__)
|
||||
};
|
||||
{
|
||||
val __v = overallBalanceDate
|
||||
if (__v != "") {
|
||||
_output__.writeString(3, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.AccountsBalancesV310JsonGrpc = {
|
||||
val __accounts = (_root_.scala.collection.immutable.Vector.newBuilder[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc] ++= this.accounts)
|
||||
var __overallBalance = this.overallBalance
|
||||
var __overallBalanceDate = this.overallBalanceDate
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__accounts += _root_.scalapb.LiteParser.readMessage(_input__, code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc.defaultInstance)
|
||||
case 18 =>
|
||||
__overallBalance = Option(_root_.scalapb.LiteParser.readMessage(_input__, __overallBalance.getOrElse(code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc.defaultInstance)))
|
||||
case 26 =>
|
||||
__overallBalanceDate = _input__.readString()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc(
|
||||
accounts = __accounts.result(),
|
||||
overallBalance = __overallBalance,
|
||||
overallBalanceDate = __overallBalanceDate
|
||||
)
|
||||
}
|
||||
def clearAccounts = copy(accounts = _root_.scala.collection.Seq.empty)
|
||||
def addAccounts(__vs: code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc*): AccountsBalancesV310JsonGrpc = addAllAccounts(__vs)
|
||||
def addAllAccounts(__vs: TraversableOnce[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc]): AccountsBalancesV310JsonGrpc = copy(accounts = accounts ++ __vs)
|
||||
def withAccounts(__v: _root_.scala.collection.Seq[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc]): AccountsBalancesV310JsonGrpc = copy(accounts = __v)
|
||||
def getOverallBalance: code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc = overallBalance.getOrElse(code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc.defaultInstance)
|
||||
def clearOverallBalance: AccountsBalancesV310JsonGrpc = copy(overallBalance = None)
|
||||
def withOverallBalance(__v: code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc): AccountsBalancesV310JsonGrpc = copy(overallBalance = Option(__v))
|
||||
def withOverallBalanceDate(__v: _root_.scala.Predef.String): AccountsBalancesV310JsonGrpc = copy(overallBalanceDate = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => accounts
|
||||
case 2 => overallBalance.orNull
|
||||
case 3 => {
|
||||
val __t = overallBalanceDate
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PRepeated(accounts.map(_.toPMessage)(_root_.scala.collection.breakOut))
|
||||
case 2 => overallBalance.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
|
||||
case 3 => _root_.scalapb.descriptors.PString(overallBalanceDate)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.AccountsBalancesV310JsonGrpc
|
||||
}
|
||||
|
||||
object AccountsBalancesV310JsonGrpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountsBalancesV310JsonGrpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountsBalancesV310JsonGrpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.AccountsBalancesV310JsonGrpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), Nil).asInstanceOf[_root_.scala.collection.Seq[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc]],
|
||||
__fieldsMap.get(__fields.get(1)).asInstanceOf[scala.Option[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc]],
|
||||
__fieldsMap.getOrElse(__fields.get(2), "").asInstanceOf[_root_.scala.Predef.String]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.AccountsBalancesV310JsonGrpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.collection.Seq[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc]]).getOrElse(_root_.scala.collection.Seq.empty),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[scala.Option[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc]]),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(13)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(13)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
|
||||
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
|
||||
(__number: @_root_.scala.unchecked) match {
|
||||
case 1 => __out = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc
|
||||
case 2 => __out = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc
|
||||
}
|
||||
__out
|
||||
}
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq[_root_.scalapb.GeneratedMessageCompanion[_]](
|
||||
_root_.code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc,
|
||||
_root_.code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc,
|
||||
_root_.code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc
|
||||
)
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.AccountsBalancesV310JsonGrpc(
|
||||
)
|
||||
@SerialVersionUID(0L)
|
||||
final case class AmountOfMoneyGrpc(
|
||||
currency: _root_.scala.Predef.String = "",
|
||||
amount: _root_.scala.Predef.String = ""
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[AmountOfMoneyGrpc] with scalapb.lenses.Updatable[AmountOfMoneyGrpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (currency != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, currency) }
|
||||
if (amount != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, amount) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = currency
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = amount
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc = {
|
||||
var __currency = this.currency
|
||||
var __amount = this.amount
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__currency = _input__.readString()
|
||||
case 18 =>
|
||||
__amount = _input__.readString()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc(
|
||||
currency = __currency,
|
||||
amount = __amount
|
||||
)
|
||||
}
|
||||
def withCurrency(__v: _root_.scala.Predef.String): AmountOfMoneyGrpc = copy(currency = __v)
|
||||
def withAmount(__v: _root_.scala.Predef.String): AmountOfMoneyGrpc = copy(amount = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = currency
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = amount
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(currency)
|
||||
case 2 => _root_.scalapb.descriptors.PString(amount)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc
|
||||
}
|
||||
|
||||
object AmountOfMoneyGrpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.javaDescriptor.getNestedTypes.get(0)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.scalaDescriptor.nestedMessages(0)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc(
|
||||
)
|
||||
implicit class AmountOfMoneyGrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc](_l) {
|
||||
def currency: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.currency)((c_, f_) => c_.copy(currency = f_))
|
||||
def amount: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.amount)((c_, f_) => c_.copy(amount = f_))
|
||||
}
|
||||
final val CURRENCY_FIELD_NUMBER = 1
|
||||
final val AMOUNT_FIELD_NUMBER = 2
|
||||
}
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class AccountRoutingGrpc(
|
||||
scheme: _root_.scala.Predef.String = "",
|
||||
address: _root_.scala.Predef.String = ""
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[AccountRoutingGrpc] with scalapb.lenses.Updatable[AccountRoutingGrpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (scheme != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, scheme) }
|
||||
if (address != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, address) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = scheme
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = address
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc = {
|
||||
var __scheme = this.scheme
|
||||
var __address = this.address
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__scheme = _input__.readString()
|
||||
case 18 =>
|
||||
__address = _input__.readString()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc(
|
||||
scheme = __scheme,
|
||||
address = __address
|
||||
)
|
||||
}
|
||||
def withScheme(__v: _root_.scala.Predef.String): AccountRoutingGrpc = copy(scheme = __v)
|
||||
def withAddress(__v: _root_.scala.Predef.String): AccountRoutingGrpc = copy(address = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = scheme
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = address
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(scheme)
|
||||
case 2 => _root_.scalapb.descriptors.PString(address)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc
|
||||
}
|
||||
|
||||
object AccountRoutingGrpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.javaDescriptor.getNestedTypes.get(1)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.scalaDescriptor.nestedMessages(1)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc(
|
||||
)
|
||||
implicit class AccountRoutingGrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc](_l) {
|
||||
def scheme: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.scheme)((c_, f_) => c_.copy(scheme = f_))
|
||||
def address: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.address)((c_, f_) => c_.copy(address = f_))
|
||||
}
|
||||
final val SCHEME_FIELD_NUMBER = 1
|
||||
final val ADDRESS_FIELD_NUMBER = 2
|
||||
}
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class AccountBalanceV310Grpc(
|
||||
id: _root_.scala.Predef.String = "",
|
||||
label: _root_.scala.Predef.String = "",
|
||||
bankId: _root_.scala.Predef.String = "",
|
||||
accountRoutings: _root_.scala.collection.Seq[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc] = _root_.scala.collection.Seq.empty,
|
||||
balance: scala.Option[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc] = None
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[AccountBalanceV310Grpc] with scalapb.lenses.Updatable[AccountBalanceV310Grpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (id != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, id) }
|
||||
if (label != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, label) }
|
||||
if (bankId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(3, bankId) }
|
||||
accountRoutings.foreach(accountRoutings => __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(accountRoutings.serializedSize) + accountRoutings.serializedSize)
|
||||
if (balance.isDefined) { __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(balance.get.serializedSize) + balance.get.serializedSize }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = id
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = label
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = bankId
|
||||
if (__v != "") {
|
||||
_output__.writeString(3, __v)
|
||||
}
|
||||
};
|
||||
accountRoutings.foreach { __v =>
|
||||
_output__.writeTag(4, 2)
|
||||
_output__.writeUInt32NoTag(__v.serializedSize)
|
||||
__v.writeTo(_output__)
|
||||
};
|
||||
balance.foreach { __v =>
|
||||
_output__.writeTag(5, 2)
|
||||
_output__.writeUInt32NoTag(__v.serializedSize)
|
||||
__v.writeTo(_output__)
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc = {
|
||||
var __id = this.id
|
||||
var __label = this.label
|
||||
var __bankId = this.bankId
|
||||
val __accountRoutings = (_root_.scala.collection.immutable.Vector.newBuilder[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc] ++= this.accountRoutings)
|
||||
var __balance = this.balance
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__id = _input__.readString()
|
||||
case 18 =>
|
||||
__label = _input__.readString()
|
||||
case 26 =>
|
||||
__bankId = _input__.readString()
|
||||
case 34 =>
|
||||
__accountRoutings += _root_.scalapb.LiteParser.readMessage(_input__, code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc.defaultInstance)
|
||||
case 42 =>
|
||||
__balance = Option(_root_.scalapb.LiteParser.readMessage(_input__, __balance.getOrElse(code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc.defaultInstance)))
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc(
|
||||
id = __id,
|
||||
label = __label,
|
||||
bankId = __bankId,
|
||||
accountRoutings = __accountRoutings.result(),
|
||||
balance = __balance
|
||||
)
|
||||
}
|
||||
def withId(__v: _root_.scala.Predef.String): AccountBalanceV310Grpc = copy(id = __v)
|
||||
def withLabel(__v: _root_.scala.Predef.String): AccountBalanceV310Grpc = copy(label = __v)
|
||||
def withBankId(__v: _root_.scala.Predef.String): AccountBalanceV310Grpc = copy(bankId = __v)
|
||||
def clearAccountRoutings = copy(accountRoutings = _root_.scala.collection.Seq.empty)
|
||||
def addAccountRoutings(__vs: code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc*): AccountBalanceV310Grpc = addAllAccountRoutings(__vs)
|
||||
def addAllAccountRoutings(__vs: TraversableOnce[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc]): AccountBalanceV310Grpc = copy(accountRoutings = accountRoutings ++ __vs)
|
||||
def withAccountRoutings(__v: _root_.scala.collection.Seq[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc]): AccountBalanceV310Grpc = copy(accountRoutings = __v)
|
||||
def getBalance: code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc = balance.getOrElse(code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc.defaultInstance)
|
||||
def clearBalance: AccountBalanceV310Grpc = copy(balance = None)
|
||||
def withBalance(__v: code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc): AccountBalanceV310Grpc = copy(balance = Option(__v))
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = id
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = label
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 3 => {
|
||||
val __t = bankId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 4 => accountRoutings
|
||||
case 5 => balance.orNull
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(id)
|
||||
case 2 => _root_.scalapb.descriptors.PString(label)
|
||||
case 3 => _root_.scalapb.descriptors.PString(bankId)
|
||||
case 4 => _root_.scalapb.descriptors.PRepeated(accountRoutings.map(_.toPMessage)(_root_.scala.collection.breakOut))
|
||||
case 5 => balance.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc
|
||||
}
|
||||
|
||||
object AccountBalanceV310Grpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(2), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(3), Nil).asInstanceOf[_root_.scala.collection.Seq[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc]],
|
||||
__fieldsMap.get(__fields.get(4)).asInstanceOf[scala.Option[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc]]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.collection.Seq[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc]]).getOrElse(_root_.scala.collection.Seq.empty),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).flatMap(_.as[scala.Option[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc]])
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.javaDescriptor.getNestedTypes.get(2)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.scalaDescriptor.nestedMessages(2)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
|
||||
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
|
||||
(__number: @_root_.scala.unchecked) match {
|
||||
case 4 => __out = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc
|
||||
case 5 => __out = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc
|
||||
}
|
||||
__out
|
||||
}
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc(
|
||||
)
|
||||
implicit class AccountBalanceV310GrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc](_l) {
|
||||
def id: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.id)((c_, f_) => c_.copy(id = f_))
|
||||
def label: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.label)((c_, f_) => c_.copy(label = f_))
|
||||
def bankId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.bankId)((c_, f_) => c_.copy(bankId = f_))
|
||||
def accountRoutings: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.Seq[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountRoutingGrpc]] = field(_.accountRoutings)((c_, f_) => c_.copy(accountRoutings = f_))
|
||||
def balance: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc] = field(_.getBalance)((c_, f_) => c_.copy(balance = Option(f_)))
|
||||
def optionalBalance: _root_.scalapb.lenses.Lens[UpperPB, scala.Option[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc]] = field(_.balance)((c_, f_) => c_.copy(balance = f_))
|
||||
}
|
||||
final val ID_FIELD_NUMBER = 1
|
||||
final val LABEL_FIELD_NUMBER = 2
|
||||
final val BANK_ID_FIELD_NUMBER = 3
|
||||
final val ACCOUNT_ROUTINGS_FIELD_NUMBER = 4
|
||||
final val BALANCE_FIELD_NUMBER = 5
|
||||
}
|
||||
|
||||
implicit class AccountsBalancesV310JsonGrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.AccountsBalancesV310JsonGrpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.AccountsBalancesV310JsonGrpc](_l) {
|
||||
def accounts: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.Seq[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AccountBalanceV310Grpc]] = field(_.accounts)((c_, f_) => c_.copy(accounts = f_))
|
||||
def overallBalance: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc] = field(_.getOverallBalance)((c_, f_) => c_.copy(overallBalance = Option(f_)))
|
||||
def optionalOverallBalance: _root_.scalapb.lenses.Lens[UpperPB, scala.Option[code.obp.grpc.api.AccountsBalancesV310JsonGrpc.AmountOfMoneyGrpc]] = field(_.overallBalance)((c_, f_) => c_.copy(overallBalance = f_))
|
||||
def overallBalanceDate: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.overallBalanceDate)((c_, f_) => c_.copy(overallBalanceDate = f_))
|
||||
}
|
||||
final val ACCOUNTS_FIELD_NUMBER = 1
|
||||
final val OVERALL_BALANCE_FIELD_NUMBER = 2
|
||||
final val OVERALL_BALANCE_DATE_FIELD_NUMBER = 3
|
||||
}
|
||||
105
obp-api/src/main/scala/code/obp/grpc/api/AccountsGrpc.scala
Normal file
105
obp-api/src/main/scala/code/obp/grpc/api/AccountsGrpc.scala
Normal file
@ -0,0 +1,105 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
/** getAccounts
|
||||
*/
|
||||
@SerialVersionUID(0L)
|
||||
final case class AccountsGrpc(
|
||||
accounts: _root_.scala.collection.Seq[code.obp.grpc.api.BasicAccountJSONGrpc] = _root_.scala.collection.Seq.empty
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[AccountsGrpc] with scalapb.lenses.Updatable[AccountsGrpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
accounts.foreach(accounts => __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(accounts.serializedSize) + accounts.serializedSize)
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
accounts.foreach { __v =>
|
||||
_output__.writeTag(1, 2)
|
||||
_output__.writeUInt32NoTag(__v.serializedSize)
|
||||
__v.writeTo(_output__)
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.AccountsGrpc = {
|
||||
val __accounts = (_root_.scala.collection.immutable.Vector.newBuilder[code.obp.grpc.api.BasicAccountJSONGrpc] ++= this.accounts)
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__accounts += _root_.scalapb.LiteParser.readMessage(_input__, code.obp.grpc.api.BasicAccountJSONGrpc.defaultInstance)
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.AccountsGrpc(
|
||||
accounts = __accounts.result()
|
||||
)
|
||||
}
|
||||
def clearAccounts = copy(accounts = _root_.scala.collection.Seq.empty)
|
||||
def addAccounts(__vs: code.obp.grpc.api.BasicAccountJSONGrpc*): AccountsGrpc = addAllAccounts(__vs)
|
||||
def addAllAccounts(__vs: TraversableOnce[code.obp.grpc.api.BasicAccountJSONGrpc]): AccountsGrpc = copy(accounts = accounts ++ __vs)
|
||||
def withAccounts(__v: _root_.scala.collection.Seq[code.obp.grpc.api.BasicAccountJSONGrpc]): AccountsGrpc = copy(accounts = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => accounts
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PRepeated(accounts.map(_.toPMessage)(_root_.scala.collection.breakOut))
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.AccountsGrpc
|
||||
}
|
||||
|
||||
object AccountsGrpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountsGrpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountsGrpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.AccountsGrpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.AccountsGrpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), Nil).asInstanceOf[_root_.scala.collection.Seq[code.obp.grpc.api.BasicAccountJSONGrpc]]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.AccountsGrpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.AccountsGrpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.collection.Seq[code.obp.grpc.api.BasicAccountJSONGrpc]]).getOrElse(_root_.scala.collection.Seq.empty)
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(5)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(5)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
|
||||
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
|
||||
(__number: @_root_.scala.unchecked) match {
|
||||
case 1 => __out = code.obp.grpc.api.BasicAccountJSONGrpc
|
||||
}
|
||||
__out
|
||||
}
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.AccountsGrpc(
|
||||
)
|
||||
implicit class AccountsGrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.AccountsGrpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.AccountsGrpc](_l) {
|
||||
def accounts: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.Seq[code.obp.grpc.api.BasicAccountJSONGrpc]] = field(_.accounts)((c_, f_) => c_.copy(accounts = f_))
|
||||
}
|
||||
final val ACCOUNTS_FIELD_NUMBER = 1
|
||||
}
|
||||
103
obp-api/src/main/scala/code/obp/grpc/api/AccountsJSONGrpc.scala
Normal file
103
obp-api/src/main/scala/code/obp/grpc/api/AccountsJSONGrpc.scala
Normal file
@ -0,0 +1,103 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class AccountsJSONGrpc(
|
||||
accounts: _root_.scala.collection.Seq[code.obp.grpc.api.AccountJSONGrpc] = _root_.scala.collection.Seq.empty
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[AccountsJSONGrpc] with scalapb.lenses.Updatable[AccountsJSONGrpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
accounts.foreach(accounts => __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(accounts.serializedSize) + accounts.serializedSize)
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
accounts.foreach { __v =>
|
||||
_output__.writeTag(1, 2)
|
||||
_output__.writeUInt32NoTag(__v.serializedSize)
|
||||
__v.writeTo(_output__)
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.AccountsJSONGrpc = {
|
||||
val __accounts = (_root_.scala.collection.immutable.Vector.newBuilder[code.obp.grpc.api.AccountJSONGrpc] ++= this.accounts)
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__accounts += _root_.scalapb.LiteParser.readMessage(_input__, code.obp.grpc.api.AccountJSONGrpc.defaultInstance)
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.AccountsJSONGrpc(
|
||||
accounts = __accounts.result()
|
||||
)
|
||||
}
|
||||
def clearAccounts = copy(accounts = _root_.scala.collection.Seq.empty)
|
||||
def addAccounts(__vs: code.obp.grpc.api.AccountJSONGrpc*): AccountsJSONGrpc = addAllAccounts(__vs)
|
||||
def addAllAccounts(__vs: TraversableOnce[code.obp.grpc.api.AccountJSONGrpc]): AccountsJSONGrpc = copy(accounts = accounts ++ __vs)
|
||||
def withAccounts(__v: _root_.scala.collection.Seq[code.obp.grpc.api.AccountJSONGrpc]): AccountsJSONGrpc = copy(accounts = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => accounts
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PRepeated(accounts.map(_.toPMessage)(_root_.scala.collection.breakOut))
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.AccountsJSONGrpc
|
||||
}
|
||||
|
||||
object AccountsJSONGrpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountsJSONGrpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.AccountsJSONGrpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.AccountsJSONGrpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.AccountsJSONGrpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), Nil).asInstanceOf[_root_.scala.collection.Seq[code.obp.grpc.api.AccountJSONGrpc]]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.AccountsJSONGrpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.AccountsJSONGrpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.collection.Seq[code.obp.grpc.api.AccountJSONGrpc]]).getOrElse(_root_.scala.collection.Seq.empty)
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(1)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(1)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
|
||||
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
|
||||
(__number: @_root_.scala.unchecked) match {
|
||||
case 1 => __out = code.obp.grpc.api.AccountJSONGrpc
|
||||
}
|
||||
__out
|
||||
}
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.AccountsJSONGrpc(
|
||||
)
|
||||
implicit class AccountsJSONGrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.AccountsJSONGrpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.AccountsJSONGrpc](_l) {
|
||||
def accounts: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.Seq[code.obp.grpc.api.AccountJSONGrpc]] = field(_.accounts)((c_, f_) => c_.copy(accounts = f_))
|
||||
}
|
||||
final val ACCOUNTS_FIELD_NUMBER = 1
|
||||
}
|
||||
153
obp-api/src/main/scala/code/obp/grpc/api/ApiProto.scala
Normal file
153
obp-api/src/main/scala/code/obp/grpc/api/ApiProto.scala
Normal file
@ -0,0 +1,153 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
object ApiProto extends _root_.scalapb.GeneratedFileObject {
|
||||
lazy val dependencies: Seq[_root_.scalapb.GeneratedFileObject] = Seq(
|
||||
com.google.protobuf.empty.EmptyProto,
|
||||
com.google.protobuf.timestamp.TimestampProto
|
||||
)
|
||||
lazy val messagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq(
|
||||
code.obp.grpc.api.BanksJson400Grpc,
|
||||
code.obp.grpc.api.AccountsJSONGrpc,
|
||||
code.obp.grpc.api.AccountJSONGrpc,
|
||||
code.obp.grpc.api.ViewsJSONV121Grpc,
|
||||
code.obp.grpc.api.ViewJSONV121Grpc,
|
||||
code.obp.grpc.api.AccountsGrpc,
|
||||
code.obp.grpc.api.BasicAccountJSONGrpc,
|
||||
code.obp.grpc.api.BankIdGrpc,
|
||||
code.obp.grpc.api.BankIdUserIdGrpc,
|
||||
code.obp.grpc.api.AccountIdGrpc,
|
||||
code.obp.grpc.api.CoreTransactionsJsonV300Grpc,
|
||||
code.obp.grpc.api.BankIdAndAccountIdGrpc,
|
||||
code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc,
|
||||
code.obp.grpc.api.AccountsBalancesV310JsonGrpc
|
||||
)
|
||||
private lazy val ProtoBytes: Array[Byte] =
|
||||
scalapb.Encoding.fromBase64(scala.collection.Seq(
|
||||
"""CglhcGkucHJvdG8SDWNvZGUub2JwLmdycGMaG2dvb2dsZS9wcm90b2J1Zi9lbXB0eS5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL
|
||||
3RpbWVzdGFtcC5wcm90byKSAwoQQmFua3NKc29uNDAwR3JwYxJFCgViYW5rcxgBIAMoCzIvLmNvZGUub2JwLmdycGMuQmFua3NKc
|
||||
29uNDAwR3JwYy5CYW5rSnNvbjQwMEdycGNSBWJhbmtzGksKF0JhbmtSb3V0aW5nSnNvblYxMjFHcnBjEhYKBnNjaGVtZRgBIAEoC
|
||||
VIGc2NoZW1lEhgKB2FkZHJlc3MYAiABKAlSB2FkZHJlc3Ma6QEKD0JhbmtKc29uNDAwR3JwYxIOCgJpZBgBIAEoCVICaWQSHQoKc
|
||||
2hvcnRfbmFtZRgCIAEoCVIJc2hvcnROYW1lEhsKCWZ1bGxfbmFtZRgDIAEoCVIIZnVsbE5hbWUSEgoEbG9nbxgEIAEoCVIEbG9nb
|
||||
xIYCgd3ZWJzaXRlGAUgASgJUgd3ZWJzaXRlElwKDWJhbmtfcm91dGluZ3MYBiADKAsyNy5jb2RlLm9icC5ncnBjLkJhbmtzSnNvb
|
||||
jQwMEdycGMuQmFua1JvdXRpbmdKc29uVjEyMUdycGNSDGJhbmtSb3V0aW5ncyJOChBBY2NvdW50c0pTT05HcnBjEjoKCGFjY291b
|
||||
nRzGAEgAygLMh4uY29kZS5vYnAuZ3JwYy5BY2NvdW50SlNPTkdycGNSCGFjY291bnRzIpsBCg9BY2NvdW50SlNPTkdycGMSDgoCa
|
||||
WQYASABKAlSAmlkEhQKBWxhYmVsGAIgASgJUgVsYWJlbBJJCg92aWV3c19hdmFpbGFibGUYAyADKAsyIC5jb2RlLm9icC5ncnBjL
|
||||
lZpZXdzSlNPTlYxMjFHcnBjUg52aWV3c0F2YWlsYWJsZRIXCgdiYW5rX2lkGAQgASgJUgZiYW5rSWQiSgoRVmlld3NKU09OVjEyM
|
||||
UdycGMSNQoFdmlld3MYASADKAsyHy5jb2RlLm9icC5ncnBjLlZpZXdKU09OVjEyMUdycGNSBXZpZXdzItkbChBWaWV3SlNPTlYxM
|
||||
jFHcnBjEg4KAmlkGAEgASgJUgJpZBIdCgpzaG9ydF9uYW1lGAIgASgJUglzaG9ydE5hbWUSIAoLZGVzY3JpcHRpb24YAyABKAlSC
|
||||
2Rlc2NyaXB0aW9uEhsKCWlzX3B1YmxpYxgEIAEoCFIIaXNQdWJsaWMSFAoFYWxpYXMYBSABKAlSBWFsaWFzEjwKG2hpZGVfbWV0Y
|
||||
WRhdGFfaWZfYWxpYXNfdXNlZBgGIAEoCFIXaGlkZU1ldGFkYXRhSWZBbGlhc1VzZWQSJgoPY2FuX2FkZF9jb21tZW50GAcgASgIU
|
||||
g1jYW5BZGRDb21tZW50EjsKGmNhbl9hZGRfY29ycG9yYXRlX2xvY2F0aW9uGAggASgIUhdjYW5BZGRDb3Jwb3JhdGVMb2NhdGlvb
|
||||
hIiCg1jYW5fYWRkX2ltYWdlGAkgASgIUgtjYW5BZGRJbWFnZRIpChFjYW5fYWRkX2ltYWdlX3VybBgKIAEoCFIOY2FuQWRkSW1hZ
|
||||
2VVcmwSKQoRY2FuX2FkZF9tb3JlX2luZm8YCyABKAhSDmNhbkFkZE1vcmVJbmZvEjwKG2Nhbl9hZGRfb3Blbl9jb3Jwb3JhdGVzX
|
||||
3VybBgMIAEoCFIXY2FuQWRkT3BlbkNvcnBvcmF0ZXNVcmwSOQoZY2FuX2FkZF9waHlzaWNhbF9sb2NhdGlvbhgNIAEoCFIWY2FuQ
|
||||
WRkUGh5c2ljYWxMb2NhdGlvbhIxChVjYW5fYWRkX3ByaXZhdGVfYWxpYXMYDiABKAhSEmNhbkFkZFByaXZhdGVBbGlhcxIvChRjY
|
||||
W5fYWRkX3B1YmxpY19hbGlhcxgPIAEoCFIRY2FuQWRkUHVibGljQWxpYXMSHgoLY2FuX2FkZF90YWcYECABKAhSCWNhbkFkZFRhZ
|
||||
xIeCgtjYW5fYWRkX3VybBgRIAEoCFIJY2FuQWRkVXJsEikKEWNhbl9hZGRfd2hlcmVfdGFnGBIgASgIUg5jYW5BZGRXaGVyZVRhZ
|
||||
xIsChJjYW5fZGVsZXRlX2NvbW1lbnQYEyABKAhSEGNhbkRlbGV0ZUNvbW1lbnQSQQodY2FuX2RlbGV0ZV9jb3Jwb3JhdGVfbG9jY
|
||||
XRpb24YFCABKAhSGmNhbkRlbGV0ZUNvcnBvcmF0ZUxvY2F0aW9uEigKEGNhbl9kZWxldGVfaW1hZ2UYFSABKAhSDmNhbkRlbGV0Z
|
||||
UltYWdlEj8KHGNhbl9kZWxldGVfcGh5c2ljYWxfbG9jYXRpb24YFiABKAhSGWNhbkRlbGV0ZVBoeXNpY2FsTG9jYXRpb24SJAoOY
|
||||
2FuX2RlbGV0ZV90YWcYFyABKAhSDGNhbkRlbGV0ZVRhZxIvChRjYW5fZGVsZXRlX3doZXJlX3RhZxgYIAEoCFIRY2FuRGVsZXRlV
|
||||
2hlcmVUYWcSMwoWY2FuX2VkaXRfb3duZXJfY29tbWVudBgZIAEoCFITY2FuRWRpdE93bmVyQ29tbWVudBI+ChxjYW5fc2VlX2Jhb
|
||||
mtfYWNjb3VudF9iYWxhbmNlGBogASgIUhhjYW5TZWVCYW5rQWNjb3VudEJhbGFuY2USQQoeY2FuX3NlZV9iYW5rX2FjY291bnRfY
|
||||
mFua19uYW1lGBsgASgIUhljYW5TZWVCYW5rQWNjb3VudEJhbmtOYW1lEkAKHWNhbl9zZWVfYmFua19hY2NvdW50X2N1cnJlbmN5G
|
||||
BwgASgIUhljYW5TZWVCYW5rQWNjb3VudEN1cnJlbmN5EjgKGWNhbl9zZWVfYmFua19hY2NvdW50X2liYW4YHSABKAhSFWNhblNlZ
|
||||
UJhbmtBY2NvdW50SWJhbhI6ChpjYW5fc2VlX2JhbmtfYWNjb3VudF9sYWJlbBgeIAEoCFIWY2FuU2VlQmFua0FjY291bnRMYWJlb
|
||||
BJVCihjYW5fc2VlX2JhbmtfYWNjb3VudF9uYXRpb25hbF9pZGVudGlmaWVyGB8gASgIUiNjYW5TZWVCYW5rQWNjb3VudE5hdGlvb
|
||||
mFsSWRlbnRpZmllchI8ChtjYW5fc2VlX2JhbmtfYWNjb3VudF9udW1iZXIYICABKAhSF2NhblNlZUJhbmtBY2NvdW50TnVtYmVyE
|
||||
jwKG2Nhbl9zZWVfYmFua19hY2NvdW50X293bmVycxghIAEoCFIXY2FuU2VlQmFua0FjY291bnRPd25lcnMSQQoeY2FuX3NlZV9iY
|
||||
W5rX2FjY291bnRfc3dpZnRfYmljGCIgASgIUhljYW5TZWVCYW5rQWNjb3VudFN3aWZ0QmljEjgKGWNhbl9zZWVfYmFua19hY2Nvd
|
||||
W50X3R5cGUYIyABKAhSFWNhblNlZUJhbmtBY2NvdW50VHlwZRIoChBjYW5fc2VlX2NvbW1lbnRzGCQgASgIUg5jYW5TZWVDb21tZ
|
||||
W50cxI7ChpjYW5fc2VlX2NvcnBvcmF0ZV9sb2NhdGlvbhglIAEoCFIXY2FuU2VlQ29ycG9yYXRlTG9jYXRpb24SKQoRY2FuX3NlZ
|
||||
V9pbWFnZV91cmwYJiABKAhSDmNhblNlZUltYWdlVXJsEiQKDmNhbl9zZWVfaW1hZ2VzGCcgASgIUgxjYW5TZWVJbWFnZXMSKQoRY
|
||||
2FuX3NlZV9tb3JlX2luZm8YKCABKAhSDmNhblNlZU1vcmVJbmZvEjwKG2Nhbl9zZWVfb3Blbl9jb3Jwb3JhdGVzX3VybBgpIAEoC
|
||||
FIXY2FuU2VlT3BlbkNvcnBvcmF0ZXNVcmwSQwofY2FuX3NlZV9vdGhlcl9hY2NvdW50X2JhbmtfbmFtZRgqIAEoCFIaY2FuU2VlT
|
||||
3RoZXJBY2NvdW50QmFua05hbWUSOgoaY2FuX3NlZV9vdGhlcl9hY2NvdW50X2liYW4YKyABKAhSFmNhblNlZU90aGVyQWNjb3Vud
|
||||
EliYW4SOgoaY2FuX3NlZV9vdGhlcl9hY2NvdW50X2tpbmQYLCABKAhSFmNhblNlZU90aGVyQWNjb3VudEtpbmQSQgoeY2FuX3NlZ
|
||||
V9vdGhlcl9hY2NvdW50X21ldGFkYXRhGC0gASgIUhpjYW5TZWVPdGhlckFjY291bnRNZXRhZGF0YRJXCiljYW5fc2VlX290aGVyX
|
||||
2FjY291bnRfbmF0aW9uYWxfaWRlbnRpZmllchguIAEoCFIkY2FuU2VlT3RoZXJBY2NvdW50TmF0aW9uYWxJZGVudGlmaWVyEj4KH
|
||||
GNhbl9zZWVfb3RoZXJfYWNjb3VudF9udW1iZXIYLyABKAhSGGNhblNlZU90aGVyQWNjb3VudE51bWJlchJDCh9jYW5fc2VlX290a
|
||||
GVyX2FjY291bnRfc3dpZnRfYmljGDAgASgIUhpjYW5TZWVPdGhlckFjY291bnRTd2lmdEJpYxIxChVjYW5fc2VlX293bmVyX2Nvb
|
||||
W1lbnQYMSABKAhSEmNhblNlZU93bmVyQ29tbWVudBI5ChljYW5fc2VlX3BoeXNpY2FsX2xvY2F0aW9uGDIgASgIUhZjYW5TZWVQa
|
||||
HlzaWNhbExvY2F0aW9uEjEKFWNhbl9zZWVfcHJpdmF0ZV9hbGlhcxgzIAEoCFISY2FuU2VlUHJpdmF0ZUFsaWFzEi8KFGNhbl9zZ
|
||||
WVfcHVibGljX2FsaWFzGDQgASgIUhFjYW5TZWVQdWJsaWNBbGlhcxIgCgxjYW5fc2VlX3RhZ3MYNSABKAhSCmNhblNlZVRhZ3MSO
|
||||
woaY2FuX3NlZV90cmFuc2FjdGlvbl9hbW91bnQYNiABKAhSF2NhblNlZVRyYW5zYWN0aW9uQW1vdW50Ej0KG2Nhbl9zZWVfdHJhb
|
||||
nNhY3Rpb25fYmFsYW5jZRg3IAEoCFIYY2FuU2VlVHJhbnNhY3Rpb25CYWxhbmNlEj8KHGNhbl9zZWVfdHJhbnNhY3Rpb25fY3Vyc
|
||||
mVuY3kYOCABKAhSGWNhblNlZVRyYW5zYWN0aW9uQ3VycmVuY3kSRQofY2FuX3NlZV90cmFuc2FjdGlvbl9kZXNjcmlwdGlvbhg5I
|
||||
AEoCFIcY2FuU2VlVHJhbnNhY3Rpb25EZXNjcmlwdGlvbhJECh9jYW5fc2VlX3RyYW5zYWN0aW9uX2ZpbmlzaF9kYXRlGDogASgIU
|
||||
htjYW5TZWVUcmFuc2FjdGlvbkZpbmlzaERhdGUSPwocY2FuX3NlZV90cmFuc2FjdGlvbl9tZXRhZGF0YRg7IAEoCFIZY2FuU2VlV
|
||||
HJhbnNhY3Rpb25NZXRhZGF0YRJRCiZjYW5fc2VlX3RyYW5zYWN0aW9uX290aGVyX2JhbmtfYWNjb3VudBg8IAEoCFIhY2FuU2VlV
|
||||
HJhbnNhY3Rpb25PdGhlckJhbmtBY2NvdW50EkIKHmNhbl9zZWVfdHJhbnNhY3Rpb25fc3RhcnRfZGF0ZRg9IAEoCFIaY2FuU2VlV
|
||||
HJhbnNhY3Rpb25TdGFydERhdGUSTwolY2FuX3NlZV90cmFuc2FjdGlvbl90aGlzX2JhbmtfYWNjb3VudBg+IAEoCFIgY2FuU2VlV
|
||||
HJhbnNhY3Rpb25UaGlzQmFua0FjY291bnQSNwoYY2FuX3NlZV90cmFuc2FjdGlvbl90eXBlGD8gASgIUhVjYW5TZWVUcmFuc2Fjd
|
||||
GlvblR5cGUSHgoLY2FuX3NlZV91cmwYQCABKAhSCWNhblNlZVVybBIpChFjYW5fc2VlX3doZXJlX3RhZxhBIAEoCFIOY2FuU2VlV
|
||||
2hlcmVUYWciTwoMQWNjb3VudHNHcnBjEj8KCGFjY291bnRzGAEgAygLMiMuY29kZS5vYnAuZ3JwYy5CYXNpY0FjY291bnRKU09OR
|
||||
3JwY1IIYWNjb3VudHMijgIKFEJhc2ljQWNjb3VudEpTT05HcnBjEg4KAmlkGAEgASgJUgJpZBIUCgVsYWJlbBgCIAEoCVIFbGFiZ
|
||||
WwSFwoHYmFua19pZBgDIAEoCVIGYmFua0lkEloKD3ZpZXdzX2F2YWlsYWJsZRgEIAMoCzIxLmNvZGUub2JwLmdycGMuQmFzaWNBY
|
||||
2NvdW50SlNPTkdycGMuQmFzaWNWaWV3SnNvblIOdmlld3NBdmFpbGFibGUaWwoNQmFzaWNWaWV3SnNvbhIOCgJpZBgBIAEoCVICa
|
||||
WQSHQoKc2hvcnRfbmFtZRgCIAEoCVIJc2hvcnROYW1lEhsKCWlzX3B1YmxpYxgDIAEoCFIIaXNQdWJsaWMiOgoKQmFua0lkR3JwY
|
||||
xIUCgV2YWx1ZRgBIAEoCVIFdmFsdWUSFgoGdXNlcklkGAIgASgJUgZ1c2VySWQiQgoQQmFua0lkVXNlcklkR3JwYxIWCgZiYW5rS
|
||||
WQYASABKAlSBmJhbmtJZBIWCgZ1c2VySWQYAiABKAlSBnVzZXJJZCIlCg1BY2NvdW50SWRHcnBjEhQKBXZhbHVlGAEgASgJUgV2Y
|
||||
Wx1ZSLNDgocQ29yZVRyYW5zYWN0aW9uc0pzb25WMzAwR3JwYxJrCgx0cmFuc2FjdGlvbnMYASADKAsyRy5jb2RlLm9icC5ncnBjL
|
||||
kNvcmVUcmFuc2FjdGlvbnNKc29uVjMwMEdycGMuQ29yZVRyYW5zYWN0aW9uSnNvblYzMDBHcnBjUgx0cmFuc2FjdGlvbnMa6gIKG
|
||||
0NvcmVUcmFuc2FjdGlvbkpzb25WMzAwR3JwYxIOCgJpZBgBIAEoCVICaWQSZgoMdGhpc19hY2NvdW50GAIgASgLMkMuY29kZS5vY
|
||||
nAuZ3JwYy5Db3JlVHJhbnNhY3Rpb25zSnNvblYzMDBHcnBjLlRoaXNBY2NvdW50SnNvblYzMDBHcnBjUgt0aGlzQWNjb3VudBJtC
|
||||
g1vdGhlcl9hY2NvdW50GAMgASgLMkguY29kZS5vYnAuZ3JwYy5Db3JlVHJhbnNhY3Rpb25zSnNvblYzMDBHcnBjLkNvcmVDb3Vud
|
||||
GVycGFydHlKc29uVjMwMEdycGNSDG90aGVyQWNjb3VudBJkCgdkZXRhaWxzGAQgASgLMkouY29kZS5vYnAuZ3JwYy5Db3JlVHJhb
|
||||
nNhY3Rpb25zSnNvblYzMDBHcnBjLkNvcmVUcmFuc2FjdGlvbkRldGFpbHNKU09OR3JwY1IHZGV0YWlscxpGChVBY2NvdW50SG9sZ
|
||||
GVySlNPTkdycGMSEgoEbmFtZRgBIAEoCVIEbmFtZRIZCghpc19hbGlhcxgCIAEoCFIHaXNBbGlhcxpOChpBY2NvdW50Um91dGluZ
|
||||
0pzb25WMTIxR3JwYxIWCgZzY2hlbWUYASABKAlSBnNjaGVtZRIYCgdhZGRyZXNzGAIgASgJUgdhZGRyZXNzGksKF0JhbmtSb3V0a
|
||||
W5nSnNvblYxMjFHcnBjEhYKBnNjaGVtZRgBIAEoCVIGc2NoZW1lEhgKB2FkZHJlc3MYAiABKAlSB2FkZHJlc3Ma4QIKF1RoaXNBY
|
||||
2NvdW50SnNvblYzMDBHcnBjEg4KAmlkGAEgASgJUgJpZBJmCgxiYW5rX3JvdXRpbmcYAiABKAsyQy5jb2RlLm9icC5ncnBjLkNvc
|
||||
mVUcmFuc2FjdGlvbnNKc29uVjMwMEdycGMuQmFua1JvdXRpbmdKc29uVjEyMUdycGNSC2JhbmtSb3V0aW5nEnEKEGFjY291bnRfc
|
||||
m91dGluZ3MYAyADKAsyRi5jb2RlLm9icC5ncnBjLkNvcmVUcmFuc2FjdGlvbnNKc29uVjMwMEdycGMuQWNjb3VudFJvdXRpbmdKc
|
||||
29uVjEyMUdycGNSD2FjY291bnRSb3V0aW5ncxJbCgdob2xkZXJzGAQgAygLMkEuY29kZS5vYnAuZ3JwYy5Db3JlVHJhbnNhY3Rpb
|
||||
25zSnNvblYzMDBHcnBjLkFjY291bnRIb2xkZXJKU09OR3JwY1IHaG9sZGVycxrkAgocQ29yZUNvdW50ZXJwYXJ0eUpzb25WMzAwR
|
||||
3JwYxIOCgJpZBgBIAEoCVICaWQSWQoGaG9sZGVyGAIgASgLMkEuY29kZS5vYnAuZ3JwYy5Db3JlVHJhbnNhY3Rpb25zSnNvblYzM
|
||||
DBHcnBjLkFjY291bnRIb2xkZXJKU09OR3JwY1IGaG9sZGVyEmYKDGJhbmtfcm91dGluZxgDIAEoCzJDLmNvZGUub2JwLmdycGMuQ
|
||||
29yZVRyYW5zYWN0aW9uc0pzb25WMzAwR3JwYy5CYW5rUm91dGluZ0pzb25WMTIxR3JwY1ILYmFua1JvdXRpbmcScQoQYWNjb3Vud
|
||||
F9yb3V0aW5ncxgEIAMoCzJGLmNvZGUub2JwLmdycGMuQ29yZVRyYW5zYWN0aW9uc0pzb25WMzAwR3JwYy5BY2NvdW50Um91dGluZ
|
||||
0pzb25WMTIxR3JwY1IPYWNjb3VudFJvdXRpbmdzGk8KGUFtb3VudE9mTW9uZXlKc29uVjEyMUdycGMSGgoIY3VycmVuY3kYASABK
|
||||
AlSCGN1cnJlbmN5EhYKBmFtb3VudBgCIAEoCVIGYW1vdW50GtECCh5Db3JlVHJhbnNhY3Rpb25EZXRhaWxzSlNPTkdycGMSEgoEd
|
||||
HlwZRgBIAEoCVIEdHlwZRIgCgtkZXNjcmlwdGlvbhgCIAEoCVILZGVzY3JpcHRpb24SFgoGcG9zdGVkGAMgASgJUgZwb3N0ZWQSH
|
||||
AoJY29tcGxldGVkGAQgASgJUgljb21wbGV0ZWQSZgoLbmV3X2JhbGFuY2UYBSABKAsyRS5jb2RlLm9icC5ncnBjLkNvcmVUcmFuc
|
||||
2FjdGlvbnNKc29uVjMwMEdycGMuQW1vdW50T2ZNb25leUpzb25WMTIxR3JwY1IKbmV3QmFsYW5jZRJbCgV2YWx1ZRgGIAEoCzJFL
|
||||
mNvZGUub2JwLmdycGMuQ29yZVRyYW5zYWN0aW9uc0pzb25WMzAwR3JwYy5BbW91bnRPZk1vbmV5SnNvblYxMjFHcnBjUgV2YWx1Z
|
||||
SJOChZCYW5rSWRBbmRBY2NvdW50SWRHcnBjEhYKBmJhbmtJZBgBIAEoCVIGYmFua0lkEhwKCWFjY291bnRJZBgCIAEoCVIJYWNjb
|
||||
3VudElkImwKHEJhbmtJZEFjY291bnRJZEFuZFVzZXJJZEdycGMSFgoGYmFua0lkGAEgASgJUgZiYW5rSWQSHAoJYWNjb3VudElkG
|
||||
AIgASgJUglhY2NvdW50SWQSFgoGdXNlcklkGAMgASgJUgZ1c2VySWQixwUKHEFjY291bnRzQmFsYW5jZXNWMzEwSnNvbkdycGMSX
|
||||
goIYWNjb3VudHMYASADKAsyQi5jb2RlLm9icC5ncnBjLkFjY291bnRzQmFsYW5jZXNWMzEwSnNvbkdycGMuQWNjb3VudEJhbGFuY
|
||||
2VWMzEwR3JwY1IIYWNjb3VudHMSZgoPb3ZlcmFsbF9iYWxhbmNlGAIgASgLMj0uY29kZS5vYnAuZ3JwYy5BY2NvdW50c0JhbGFuY
|
||||
2VzVjMxMEpzb25HcnBjLkFtb3VudE9mTW9uZXlHcnBjUg5vdmVyYWxsQmFsYW5jZRIwChRvdmVyYWxsX2JhbGFuY2VfZGF0ZRgDI
|
||||
AEoCVISb3ZlcmFsbEJhbGFuY2VEYXRlGkcKEUFtb3VudE9mTW9uZXlHcnBjEhoKCGN1cnJlbmN5GAEgASgJUghjdXJyZW5jeRIWC
|
||||
gZhbW91bnQYAiABKAlSBmFtb3VudBpGChJBY2NvdW50Um91dGluZ0dycGMSFgoGc2NoZW1lGAEgASgJUgZzY2hlbWUSGAoHYWRkc
|
||||
mVzcxgCIAEoCVIHYWRkcmVzcxqbAgoWQWNjb3VudEJhbGFuY2VWMzEwR3JwYxIOCgJpZBgBIAEoCVICaWQSFAoFbGFiZWwYAiABK
|
||||
AlSBWxhYmVsEhcKB2JhbmtfaWQYAyABKAlSBmJhbmtJZBJpChBhY2NvdW50X3JvdXRpbmdzGAQgAygLMj4uY29kZS5vYnAuZ3JwY
|
||||
y5BY2NvdW50c0JhbGFuY2VzVjMxMEpzb25HcnBjLkFjY291bnRSb3V0aW5nR3JwY1IPYWNjb3VudFJvdXRpbmdzElcKB2JhbGFuY
|
||||
2UYBSABKAsyPS5jb2RlLm9icC5ncnBjLkFjY291bnRzQmFsYW5jZXNWMzEwSnNvbkdycGMuQW1vdW50T2ZNb25leUdycGNSB2Jhb
|
||||
GFuY2UymAMKCk9icFNlcnZpY2USRQoIZ2V0QmFua3MSFi5nb29nbGUucHJvdG9idWYuRW1wdHkaHy5jb2RlLm9icC5ncnBjLkJhb
|
||||
mtzSnNvbjQwMEdycGMiABJdChtnZXRQcml2YXRlQWNjb3VudHNBdE9uZUJhbmsSHy5jb2RlLm9icC5ncnBjLkJhbmtJZFVzZXJJZ
|
||||
EdycGMaGy5jb2RlLm9icC5ncnBjLkFjY291bnRzR3JwYyIAEmMKF2dldEJhbmtBY2NvdW50c0JhbGFuY2VzEhkuY29kZS5vYnAuZ
|
||||
3JwYy5CYW5rSWRHcnBjGisuY29kZS5vYnAuZ3JwYy5BY2NvdW50c0JhbGFuY2VzVjMxMEpzb25HcnBjIgASfwohZ2V0Q29yZVRyY
|
||||
W5zYWN0aW9uc0ZvckJhbmtBY2NvdW50EisuY29kZS5vYnAuZ3JwYy5CYW5rSWRBY2NvdW50SWRBbmRVc2VySWRHcnBjGisuY29kZ
|
||||
S5vYnAuZ3JwYy5Db3JlVHJhbnNhY3Rpb25zSnNvblYzMDBHcnBjIgBiBnByb3RvMw=="""
|
||||
).mkString)
|
||||
lazy val scalaDescriptor: _root_.scalapb.descriptors.FileDescriptor = {
|
||||
val scalaProto = com.google.protobuf.descriptor.FileDescriptorProto.parseFrom(ProtoBytes)
|
||||
_root_.scalapb.descriptors.FileDescriptor.buildFrom(scalaProto, dependencies.map(_.scalaDescriptor))
|
||||
}
|
||||
lazy val javaDescriptor: com.google.protobuf.Descriptors.FileDescriptor = {
|
||||
val javaProto = com.google.protobuf.DescriptorProtos.FileDescriptorProto.parseFrom(ProtoBytes)
|
||||
com.google.protobuf.Descriptors.FileDescriptor.buildFrom(javaProto, Array(
|
||||
com.google.protobuf.empty.EmptyProto.javaDescriptor,
|
||||
com.google.protobuf.timestamp.TimestampProto.javaDescriptor
|
||||
))
|
||||
}
|
||||
@deprecated("Use javaDescriptor instead. In a future version this will refer to scalaDescriptor.", "ScalaPB 0.5.47")
|
||||
def descriptor: com.google.protobuf.Descriptors.FileDescriptor = javaDescriptor
|
||||
}
|
||||
@ -0,0 +1,142 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class BankIdAccountIdAndUserId(
|
||||
bankId: _root_.scala.Predef.String = "",
|
||||
accountId: _root_.scala.Predef.String = "",
|
||||
userId: _root_.scala.Predef.String = ""
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[BankIdAccountIdAndUserId] with scalapb.lenses.Updatable[BankIdAccountIdAndUserId] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (bankId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, bankId) }
|
||||
if (accountId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, accountId) }
|
||||
if (userId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(3, userId) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = bankId
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = accountId
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = userId
|
||||
if (__v != "") {
|
||||
_output__.writeString(3, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.BankIdAccountIdAndUserId = {
|
||||
var __bankId = this.bankId
|
||||
var __accountId = this.accountId
|
||||
var __userId = this.userId
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__bankId = _input__.readString()
|
||||
case 18 =>
|
||||
__accountId = _input__.readString()
|
||||
case 26 =>
|
||||
__userId = _input__.readString()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.BankIdAccountIdAndUserId(
|
||||
bankId = __bankId,
|
||||
accountId = __accountId,
|
||||
userId = __userId
|
||||
)
|
||||
}
|
||||
def withBankId(__v: _root_.scala.Predef.String): BankIdAccountIdAndUserId = copy(bankId = __v)
|
||||
def withAccountId(__v: _root_.scala.Predef.String): BankIdAccountIdAndUserId = copy(accountId = __v)
|
||||
def withUserId(__v: _root_.scala.Predef.String): BankIdAccountIdAndUserId = copy(userId = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = bankId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = accountId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 3 => {
|
||||
val __t = userId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(bankId)
|
||||
case 2 => _root_.scalapb.descriptors.PString(accountId)
|
||||
case 3 => _root_.scalapb.descriptors.PString(userId)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.BankIdAccountIdAndUserId
|
||||
}
|
||||
|
||||
object BankIdAccountIdAndUserId extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BankIdAccountIdAndUserId] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BankIdAccountIdAndUserId] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.BankIdAccountIdAndUserId = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.BankIdAccountIdAndUserId(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(2), "").asInstanceOf[_root_.scala.Predef.String]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.BankIdAccountIdAndUserId] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.BankIdAccountIdAndUserId(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(12)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(12)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.BankIdAccountIdAndUserId(
|
||||
)
|
||||
implicit class BankIdAccountIdAndUserIdLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.BankIdAccountIdAndUserId]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.BankIdAccountIdAndUserId](_l) {
|
||||
def bankId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.bankId)((c_, f_) => c_.copy(bankId = f_))
|
||||
def accountId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.accountId)((c_, f_) => c_.copy(accountId = f_))
|
||||
def userId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.userId)((c_, f_) => c_.copy(userId = f_))
|
||||
}
|
||||
final val BANKID_FIELD_NUMBER = 1
|
||||
final val ACCOUNTID_FIELD_NUMBER = 2
|
||||
final val USERID_FIELD_NUMBER = 3
|
||||
}
|
||||
@ -0,0 +1,142 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class BankIdAccountIdAndUserIdGrpc(
|
||||
bankId: _root_.scala.Predef.String = "",
|
||||
accountId: _root_.scala.Predef.String = "",
|
||||
userId: _root_.scala.Predef.String = ""
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[BankIdAccountIdAndUserIdGrpc] with scalapb.lenses.Updatable[BankIdAccountIdAndUserIdGrpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (bankId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, bankId) }
|
||||
if (accountId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, accountId) }
|
||||
if (userId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(3, userId) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = bankId
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = accountId
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = userId
|
||||
if (__v != "") {
|
||||
_output__.writeString(3, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc = {
|
||||
var __bankId = this.bankId
|
||||
var __accountId = this.accountId
|
||||
var __userId = this.userId
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__bankId = _input__.readString()
|
||||
case 18 =>
|
||||
__accountId = _input__.readString()
|
||||
case 26 =>
|
||||
__userId = _input__.readString()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc(
|
||||
bankId = __bankId,
|
||||
accountId = __accountId,
|
||||
userId = __userId
|
||||
)
|
||||
}
|
||||
def withBankId(__v: _root_.scala.Predef.String): BankIdAccountIdAndUserIdGrpc = copy(bankId = __v)
|
||||
def withAccountId(__v: _root_.scala.Predef.String): BankIdAccountIdAndUserIdGrpc = copy(accountId = __v)
|
||||
def withUserId(__v: _root_.scala.Predef.String): BankIdAccountIdAndUserIdGrpc = copy(userId = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = bankId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = accountId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 3 => {
|
||||
val __t = userId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(bankId)
|
||||
case 2 => _root_.scalapb.descriptors.PString(accountId)
|
||||
case 3 => _root_.scalapb.descriptors.PString(userId)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc
|
||||
}
|
||||
|
||||
object BankIdAccountIdAndUserIdGrpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(2), "").asInstanceOf[_root_.scala.Predef.String]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(12)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(12)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc(
|
||||
)
|
||||
implicit class BankIdAccountIdAndUserIdGrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc](_l) {
|
||||
def bankId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.bankId)((c_, f_) => c_.copy(bankId = f_))
|
||||
def accountId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.accountId)((c_, f_) => c_.copy(accountId = f_))
|
||||
def userId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.userId)((c_, f_) => c_.copy(userId = f_))
|
||||
}
|
||||
final val BANKID_FIELD_NUMBER = 1
|
||||
final val ACCOUNTID_FIELD_NUMBER = 2
|
||||
final val USERID_FIELD_NUMBER = 3
|
||||
}
|
||||
@ -0,0 +1,120 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class BankIdAndAccountId(
|
||||
bankId: _root_.scala.Predef.String = "",
|
||||
accountId: _root_.scala.Predef.String = ""
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[BankIdAndAccountId] with scalapb.lenses.Updatable[BankIdAndAccountId] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (bankId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, bankId) }
|
||||
if (accountId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, accountId) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = bankId
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = accountId
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.BankIdAndAccountId = {
|
||||
var __bankId = this.bankId
|
||||
var __accountId = this.accountId
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__bankId = _input__.readString()
|
||||
case 18 =>
|
||||
__accountId = _input__.readString()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.BankIdAndAccountId(
|
||||
bankId = __bankId,
|
||||
accountId = __accountId
|
||||
)
|
||||
}
|
||||
def withBankId(__v: _root_.scala.Predef.String): BankIdAndAccountId = copy(bankId = __v)
|
||||
def withAccountId(__v: _root_.scala.Predef.String): BankIdAndAccountId = copy(accountId = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = bankId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = accountId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(bankId)
|
||||
case 2 => _root_.scalapb.descriptors.PString(accountId)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.BankIdAndAccountId
|
||||
}
|
||||
|
||||
object BankIdAndAccountId extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BankIdAndAccountId] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BankIdAndAccountId] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.BankIdAndAccountId = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.BankIdAndAccountId(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.BankIdAndAccountId] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.BankIdAndAccountId(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(11)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(11)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.BankIdAndAccountId(
|
||||
)
|
||||
implicit class BankIdAndAccountIdLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.BankIdAndAccountId]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.BankIdAndAccountId](_l) {
|
||||
def bankId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.bankId)((c_, f_) => c_.copy(bankId = f_))
|
||||
def accountId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.accountId)((c_, f_) => c_.copy(accountId = f_))
|
||||
}
|
||||
final val BANKID_FIELD_NUMBER = 1
|
||||
final val ACCOUNTID_FIELD_NUMBER = 2
|
||||
}
|
||||
@ -0,0 +1,120 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class BankIdAndAccountIdGrpc(
|
||||
bankId: _root_.scala.Predef.String = "",
|
||||
accountId: _root_.scala.Predef.String = ""
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[BankIdAndAccountIdGrpc] with scalapb.lenses.Updatable[BankIdAndAccountIdGrpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (bankId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, bankId) }
|
||||
if (accountId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, accountId) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = bankId
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = accountId
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.BankIdAndAccountIdGrpc = {
|
||||
var __bankId = this.bankId
|
||||
var __accountId = this.accountId
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__bankId = _input__.readString()
|
||||
case 18 =>
|
||||
__accountId = _input__.readString()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.BankIdAndAccountIdGrpc(
|
||||
bankId = __bankId,
|
||||
accountId = __accountId
|
||||
)
|
||||
}
|
||||
def withBankId(__v: _root_.scala.Predef.String): BankIdAndAccountIdGrpc = copy(bankId = __v)
|
||||
def withAccountId(__v: _root_.scala.Predef.String): BankIdAndAccountIdGrpc = copy(accountId = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = bankId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = accountId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(bankId)
|
||||
case 2 => _root_.scalapb.descriptors.PString(accountId)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.BankIdAndAccountIdGrpc
|
||||
}
|
||||
|
||||
object BankIdAndAccountIdGrpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BankIdAndAccountIdGrpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BankIdAndAccountIdGrpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.BankIdAndAccountIdGrpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.BankIdAndAccountIdGrpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.BankIdAndAccountIdGrpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.BankIdAndAccountIdGrpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(11)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(11)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.BankIdAndAccountIdGrpc(
|
||||
)
|
||||
implicit class BankIdAndAccountIdGrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.BankIdAndAccountIdGrpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.BankIdAndAccountIdGrpc](_l) {
|
||||
def bankId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.bankId)((c_, f_) => c_.copy(bankId = f_))
|
||||
def accountId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.accountId)((c_, f_) => c_.copy(accountId = f_))
|
||||
}
|
||||
final val BANKID_FIELD_NUMBER = 1
|
||||
final val ACCOUNTID_FIELD_NUMBER = 2
|
||||
}
|
||||
120
obp-api/src/main/scala/code/obp/grpc/api/BankIdGrpc.scala
Normal file
120
obp-api/src/main/scala/code/obp/grpc/api/BankIdGrpc.scala
Normal file
@ -0,0 +1,120 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class BankIdGrpc(
|
||||
value: _root_.scala.Predef.String = "",
|
||||
userId: _root_.scala.Predef.String = ""
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[BankIdGrpc] with scalapb.lenses.Updatable[BankIdGrpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (value != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, value) }
|
||||
if (userId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, userId) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = value
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = userId
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.BankIdGrpc = {
|
||||
var __value = this.value
|
||||
var __userId = this.userId
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__value = _input__.readString()
|
||||
case 18 =>
|
||||
__userId = _input__.readString()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.BankIdGrpc(
|
||||
value = __value,
|
||||
userId = __userId
|
||||
)
|
||||
}
|
||||
def withValue(__v: _root_.scala.Predef.String): BankIdGrpc = copy(value = __v)
|
||||
def withUserId(__v: _root_.scala.Predef.String): BankIdGrpc = copy(userId = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = value
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = userId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(value)
|
||||
case 2 => _root_.scalapb.descriptors.PString(userId)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.BankIdGrpc
|
||||
}
|
||||
|
||||
object BankIdGrpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BankIdGrpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BankIdGrpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.BankIdGrpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.BankIdGrpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.BankIdGrpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.BankIdGrpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(7)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(7)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.BankIdGrpc(
|
||||
)
|
||||
implicit class BankIdGrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.BankIdGrpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.BankIdGrpc](_l) {
|
||||
def value: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.value)((c_, f_) => c_.copy(value = f_))
|
||||
def userId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.userId)((c_, f_) => c_.copy(userId = f_))
|
||||
}
|
||||
final val VALUE_FIELD_NUMBER = 1
|
||||
final val USERID_FIELD_NUMBER = 2
|
||||
}
|
||||
120
obp-api/src/main/scala/code/obp/grpc/api/BankIdUserIdGrpc.scala
Normal file
120
obp-api/src/main/scala/code/obp/grpc/api/BankIdUserIdGrpc.scala
Normal file
@ -0,0 +1,120 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class BankIdUserIdGrpc(
|
||||
bankId: _root_.scala.Predef.String = "",
|
||||
userId: _root_.scala.Predef.String = ""
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[BankIdUserIdGrpc] with scalapb.lenses.Updatable[BankIdUserIdGrpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (bankId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, bankId) }
|
||||
if (userId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, userId) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = bankId
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = userId
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.BankIdUserIdGrpc = {
|
||||
var __bankId = this.bankId
|
||||
var __userId = this.userId
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__bankId = _input__.readString()
|
||||
case 18 =>
|
||||
__userId = _input__.readString()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.BankIdUserIdGrpc(
|
||||
bankId = __bankId,
|
||||
userId = __userId
|
||||
)
|
||||
}
|
||||
def withBankId(__v: _root_.scala.Predef.String): BankIdUserIdGrpc = copy(bankId = __v)
|
||||
def withUserId(__v: _root_.scala.Predef.String): BankIdUserIdGrpc = copy(userId = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = bankId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = userId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(bankId)
|
||||
case 2 => _root_.scalapb.descriptors.PString(userId)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.BankIdUserIdGrpc
|
||||
}
|
||||
|
||||
object BankIdUserIdGrpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BankIdUserIdGrpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BankIdUserIdGrpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.BankIdUserIdGrpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.BankIdUserIdGrpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.BankIdUserIdGrpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.BankIdUserIdGrpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(8)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(8)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.BankIdUserIdGrpc(
|
||||
)
|
||||
implicit class BankIdUserIdGrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.BankIdUserIdGrpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.BankIdUserIdGrpc](_l) {
|
||||
def bankId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.bankId)((c_, f_) => c_.copy(bankId = f_))
|
||||
def userId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.userId)((c_, f_) => c_.copy(userId = f_))
|
||||
}
|
||||
final val BANKID_FIELD_NUMBER = 1
|
||||
final val USERID_FIELD_NUMBER = 2
|
||||
}
|
||||
429
obp-api/src/main/scala/code/obp/grpc/api/BanksJson400Grpc.scala
Normal file
429
obp-api/src/main/scala/code/obp/grpc/api/BanksJson400Grpc.scala
Normal file
@ -0,0 +1,429 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
/** getBanks response
|
||||
*/
|
||||
@SerialVersionUID(0L)
|
||||
final case class BanksJson400Grpc(
|
||||
banks: _root_.scala.collection.Seq[code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc] = _root_.scala.collection.Seq.empty
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[BanksJson400Grpc] with scalapb.lenses.Updatable[BanksJson400Grpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
banks.foreach(banks => __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(banks.serializedSize) + banks.serializedSize)
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
banks.foreach { __v =>
|
||||
_output__.writeTag(1, 2)
|
||||
_output__.writeUInt32NoTag(__v.serializedSize)
|
||||
__v.writeTo(_output__)
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.BanksJson400Grpc = {
|
||||
val __banks = (_root_.scala.collection.immutable.Vector.newBuilder[code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc] ++= this.banks)
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__banks += _root_.scalapb.LiteParser.readMessage(_input__, code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc.defaultInstance)
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.BanksJson400Grpc(
|
||||
banks = __banks.result()
|
||||
)
|
||||
}
|
||||
def clearBanks = copy(banks = _root_.scala.collection.Seq.empty)
|
||||
def addBanks(__vs: code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc*): BanksJson400Grpc = addAllBanks(__vs)
|
||||
def addAllBanks(__vs: TraversableOnce[code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc]): BanksJson400Grpc = copy(banks = banks ++ __vs)
|
||||
def withBanks(__v: _root_.scala.collection.Seq[code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc]): BanksJson400Grpc = copy(banks = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => banks
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PRepeated(banks.map(_.toPMessage)(_root_.scala.collection.breakOut))
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.BanksJson400Grpc
|
||||
}
|
||||
|
||||
object BanksJson400Grpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BanksJson400Grpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BanksJson400Grpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.BanksJson400Grpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.BanksJson400Grpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), Nil).asInstanceOf[_root_.scala.collection.Seq[code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc]]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.BanksJson400Grpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.BanksJson400Grpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.collection.Seq[code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc]]).getOrElse(_root_.scala.collection.Seq.empty)
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(0)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(0)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
|
||||
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
|
||||
(__number: @_root_.scala.unchecked) match {
|
||||
case 1 => __out = code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc
|
||||
}
|
||||
__out
|
||||
}
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq[_root_.scalapb.GeneratedMessageCompanion[_]](
|
||||
_root_.code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc,
|
||||
_root_.code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc
|
||||
)
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.BanksJson400Grpc(
|
||||
)
|
||||
@SerialVersionUID(0L)
|
||||
final case class BankRoutingJsonV121Grpc(
|
||||
scheme: _root_.scala.Predef.String = "",
|
||||
address: _root_.scala.Predef.String = ""
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[BankRoutingJsonV121Grpc] with scalapb.lenses.Updatable[BankRoutingJsonV121Grpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (scheme != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, scheme) }
|
||||
if (address != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, address) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = scheme
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = address
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc = {
|
||||
var __scheme = this.scheme
|
||||
var __address = this.address
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__scheme = _input__.readString()
|
||||
case 18 =>
|
||||
__address = _input__.readString()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc(
|
||||
scheme = __scheme,
|
||||
address = __address
|
||||
)
|
||||
}
|
||||
def withScheme(__v: _root_.scala.Predef.String): BankRoutingJsonV121Grpc = copy(scheme = __v)
|
||||
def withAddress(__v: _root_.scala.Predef.String): BankRoutingJsonV121Grpc = copy(address = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = scheme
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = address
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(scheme)
|
||||
case 2 => _root_.scalapb.descriptors.PString(address)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc
|
||||
}
|
||||
|
||||
object BankRoutingJsonV121Grpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = code.obp.grpc.api.BanksJson400Grpc.javaDescriptor.getNestedTypes.get(0)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = code.obp.grpc.api.BanksJson400Grpc.scalaDescriptor.nestedMessages(0)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc(
|
||||
)
|
||||
implicit class BankRoutingJsonV121GrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc](_l) {
|
||||
def scheme: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.scheme)((c_, f_) => c_.copy(scheme = f_))
|
||||
def address: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.address)((c_, f_) => c_.copy(address = f_))
|
||||
}
|
||||
final val SCHEME_FIELD_NUMBER = 1
|
||||
final val ADDRESS_FIELD_NUMBER = 2
|
||||
}
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class BankJson400Grpc(
|
||||
id: _root_.scala.Predef.String = "",
|
||||
shortName: _root_.scala.Predef.String = "",
|
||||
fullName: _root_.scala.Predef.String = "",
|
||||
logo: _root_.scala.Predef.String = "",
|
||||
website: _root_.scala.Predef.String = "",
|
||||
bankRoutings: _root_.scala.collection.Seq[code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc] = _root_.scala.collection.Seq.empty
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[BankJson400Grpc] with scalapb.lenses.Updatable[BankJson400Grpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (id != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, id) }
|
||||
if (shortName != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, shortName) }
|
||||
if (fullName != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(3, fullName) }
|
||||
if (logo != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(4, logo) }
|
||||
if (website != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(5, website) }
|
||||
bankRoutings.foreach(bankRoutings => __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(bankRoutings.serializedSize) + bankRoutings.serializedSize)
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = id
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = shortName
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = fullName
|
||||
if (__v != "") {
|
||||
_output__.writeString(3, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = logo
|
||||
if (__v != "") {
|
||||
_output__.writeString(4, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = website
|
||||
if (__v != "") {
|
||||
_output__.writeString(5, __v)
|
||||
}
|
||||
};
|
||||
bankRoutings.foreach { __v =>
|
||||
_output__.writeTag(6, 2)
|
||||
_output__.writeUInt32NoTag(__v.serializedSize)
|
||||
__v.writeTo(_output__)
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc = {
|
||||
var __id = this.id
|
||||
var __shortName = this.shortName
|
||||
var __fullName = this.fullName
|
||||
var __logo = this.logo
|
||||
var __website = this.website
|
||||
val __bankRoutings = (_root_.scala.collection.immutable.Vector.newBuilder[code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc] ++= this.bankRoutings)
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__id = _input__.readString()
|
||||
case 18 =>
|
||||
__shortName = _input__.readString()
|
||||
case 26 =>
|
||||
__fullName = _input__.readString()
|
||||
case 34 =>
|
||||
__logo = _input__.readString()
|
||||
case 42 =>
|
||||
__website = _input__.readString()
|
||||
case 50 =>
|
||||
__bankRoutings += _root_.scalapb.LiteParser.readMessage(_input__, code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc.defaultInstance)
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc(
|
||||
id = __id,
|
||||
shortName = __shortName,
|
||||
fullName = __fullName,
|
||||
logo = __logo,
|
||||
website = __website,
|
||||
bankRoutings = __bankRoutings.result()
|
||||
)
|
||||
}
|
||||
def withId(__v: _root_.scala.Predef.String): BankJson400Grpc = copy(id = __v)
|
||||
def withShortName(__v: _root_.scala.Predef.String): BankJson400Grpc = copy(shortName = __v)
|
||||
def withFullName(__v: _root_.scala.Predef.String): BankJson400Grpc = copy(fullName = __v)
|
||||
def withLogo(__v: _root_.scala.Predef.String): BankJson400Grpc = copy(logo = __v)
|
||||
def withWebsite(__v: _root_.scala.Predef.String): BankJson400Grpc = copy(website = __v)
|
||||
def clearBankRoutings = copy(bankRoutings = _root_.scala.collection.Seq.empty)
|
||||
def addBankRoutings(__vs: code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc*): BankJson400Grpc = addAllBankRoutings(__vs)
|
||||
def addAllBankRoutings(__vs: TraversableOnce[code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc]): BankJson400Grpc = copy(bankRoutings = bankRoutings ++ __vs)
|
||||
def withBankRoutings(__v: _root_.scala.collection.Seq[code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc]): BankJson400Grpc = copy(bankRoutings = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = id
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = shortName
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 3 => {
|
||||
val __t = fullName
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 4 => {
|
||||
val __t = logo
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 5 => {
|
||||
val __t = website
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 6 => bankRoutings
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(id)
|
||||
case 2 => _root_.scalapb.descriptors.PString(shortName)
|
||||
case 3 => _root_.scalapb.descriptors.PString(fullName)
|
||||
case 4 => _root_.scalapb.descriptors.PString(logo)
|
||||
case 5 => _root_.scalapb.descriptors.PString(website)
|
||||
case 6 => _root_.scalapb.descriptors.PRepeated(bankRoutings.map(_.toPMessage)(_root_.scala.collection.breakOut))
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc
|
||||
}
|
||||
|
||||
object BankJson400Grpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(2), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(3), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(4), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(5), Nil).asInstanceOf[_root_.scala.collection.Seq[code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc]]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).map(_.as[_root_.scala.collection.Seq[code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc]]).getOrElse(_root_.scala.collection.Seq.empty)
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = code.obp.grpc.api.BanksJson400Grpc.javaDescriptor.getNestedTypes.get(1)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = code.obp.grpc.api.BanksJson400Grpc.scalaDescriptor.nestedMessages(1)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
|
||||
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
|
||||
(__number: @_root_.scala.unchecked) match {
|
||||
case 6 => __out = code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc
|
||||
}
|
||||
__out
|
||||
}
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc(
|
||||
)
|
||||
implicit class BankJson400GrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc](_l) {
|
||||
def id: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.id)((c_, f_) => c_.copy(id = f_))
|
||||
def shortName: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.shortName)((c_, f_) => c_.copy(shortName = f_))
|
||||
def fullName: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.fullName)((c_, f_) => c_.copy(fullName = f_))
|
||||
def logo: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.logo)((c_, f_) => c_.copy(logo = f_))
|
||||
def website: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.website)((c_, f_) => c_.copy(website = f_))
|
||||
def bankRoutings: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.Seq[code.obp.grpc.api.BanksJson400Grpc.BankRoutingJsonV121Grpc]] = field(_.bankRoutings)((c_, f_) => c_.copy(bankRoutings = f_))
|
||||
}
|
||||
final val ID_FIELD_NUMBER = 1
|
||||
final val SHORT_NAME_FIELD_NUMBER = 2
|
||||
final val FULL_NAME_FIELD_NUMBER = 3
|
||||
final val LOGO_FIELD_NUMBER = 4
|
||||
final val WEBSITE_FIELD_NUMBER = 5
|
||||
final val BANK_ROUTINGS_FIELD_NUMBER = 6
|
||||
}
|
||||
|
||||
implicit class BanksJson400GrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.BanksJson400Grpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.BanksJson400Grpc](_l) {
|
||||
def banks: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.Seq[code.obp.grpc.api.BanksJson400Grpc.BankJson400Grpc]] = field(_.banks)((c_, f_) => c_.copy(banks = f_))
|
||||
}
|
||||
final val BANKS_FIELD_NUMBER = 1
|
||||
}
|
||||
@ -0,0 +1,307 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class BasicAccountJSONGrpc(
|
||||
id: _root_.scala.Predef.String = "",
|
||||
label: _root_.scala.Predef.String = "",
|
||||
bankId: _root_.scala.Predef.String = "",
|
||||
viewsAvailable: _root_.scala.collection.Seq[code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson] = _root_.scala.collection.Seq.empty
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[BasicAccountJSONGrpc] with scalapb.lenses.Updatable[BasicAccountJSONGrpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (id != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, id) }
|
||||
if (label != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, label) }
|
||||
if (bankId != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(3, bankId) }
|
||||
viewsAvailable.foreach(viewsAvailable => __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(viewsAvailable.serializedSize) + viewsAvailable.serializedSize)
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = id
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = label
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = bankId
|
||||
if (__v != "") {
|
||||
_output__.writeString(3, __v)
|
||||
}
|
||||
};
|
||||
viewsAvailable.foreach { __v =>
|
||||
_output__.writeTag(4, 2)
|
||||
_output__.writeUInt32NoTag(__v.serializedSize)
|
||||
__v.writeTo(_output__)
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.BasicAccountJSONGrpc = {
|
||||
var __id = this.id
|
||||
var __label = this.label
|
||||
var __bankId = this.bankId
|
||||
val __viewsAvailable = (_root_.scala.collection.immutable.Vector.newBuilder[code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson] ++= this.viewsAvailable)
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__id = _input__.readString()
|
||||
case 18 =>
|
||||
__label = _input__.readString()
|
||||
case 26 =>
|
||||
__bankId = _input__.readString()
|
||||
case 34 =>
|
||||
__viewsAvailable += _root_.scalapb.LiteParser.readMessage(_input__, code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson.defaultInstance)
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.BasicAccountJSONGrpc(
|
||||
id = __id,
|
||||
label = __label,
|
||||
bankId = __bankId,
|
||||
viewsAvailable = __viewsAvailable.result()
|
||||
)
|
||||
}
|
||||
def withId(__v: _root_.scala.Predef.String): BasicAccountJSONGrpc = copy(id = __v)
|
||||
def withLabel(__v: _root_.scala.Predef.String): BasicAccountJSONGrpc = copy(label = __v)
|
||||
def withBankId(__v: _root_.scala.Predef.String): BasicAccountJSONGrpc = copy(bankId = __v)
|
||||
def clearViewsAvailable = copy(viewsAvailable = _root_.scala.collection.Seq.empty)
|
||||
def addViewsAvailable(__vs: code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson*): BasicAccountJSONGrpc = addAllViewsAvailable(__vs)
|
||||
def addAllViewsAvailable(__vs: TraversableOnce[code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson]): BasicAccountJSONGrpc = copy(viewsAvailable = viewsAvailable ++ __vs)
|
||||
def withViewsAvailable(__v: _root_.scala.collection.Seq[code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson]): BasicAccountJSONGrpc = copy(viewsAvailable = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = id
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = label
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 3 => {
|
||||
val __t = bankId
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 4 => viewsAvailable
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(id)
|
||||
case 2 => _root_.scalapb.descriptors.PString(label)
|
||||
case 3 => _root_.scalapb.descriptors.PString(bankId)
|
||||
case 4 => _root_.scalapb.descriptors.PRepeated(viewsAvailable.map(_.toPMessage)(_root_.scala.collection.breakOut))
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.BasicAccountJSONGrpc
|
||||
}
|
||||
|
||||
object BasicAccountJSONGrpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BasicAccountJSONGrpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BasicAccountJSONGrpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.BasicAccountJSONGrpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.BasicAccountJSONGrpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(2), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(3), Nil).asInstanceOf[_root_.scala.collection.Seq[code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson]]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.BasicAccountJSONGrpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.BasicAccountJSONGrpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.scala.collection.Seq[code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson]]).getOrElse(_root_.scala.collection.Seq.empty)
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(6)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(6)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
|
||||
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
|
||||
(__number: @_root_.scala.unchecked) match {
|
||||
case 4 => __out = code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson
|
||||
}
|
||||
__out
|
||||
}
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq[_root_.scalapb.GeneratedMessageCompanion[_]](
|
||||
_root_.code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson
|
||||
)
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.BasicAccountJSONGrpc(
|
||||
)
|
||||
@SerialVersionUID(0L)
|
||||
final case class BasicViewJson(
|
||||
id: _root_.scala.Predef.String = "",
|
||||
shortName: _root_.scala.Predef.String = "",
|
||||
isPublic: _root_.scala.Boolean = false
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[BasicViewJson] with scalapb.lenses.Updatable[BasicViewJson] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (id != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, id) }
|
||||
if (shortName != "") { __size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, shortName) }
|
||||
if (isPublic != false) { __size += _root_.com.google.protobuf.CodedOutputStream.computeBoolSize(3, isPublic) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = id
|
||||
if (__v != "") {
|
||||
_output__.writeString(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = shortName
|
||||
if (__v != "") {
|
||||
_output__.writeString(2, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = isPublic
|
||||
if (__v != false) {
|
||||
_output__.writeBool(3, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson = {
|
||||
var __id = this.id
|
||||
var __shortName = this.shortName
|
||||
var __isPublic = this.isPublic
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__id = _input__.readString()
|
||||
case 18 =>
|
||||
__shortName = _input__.readString()
|
||||
case 24 =>
|
||||
__isPublic = _input__.readBool()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson(
|
||||
id = __id,
|
||||
shortName = __shortName,
|
||||
isPublic = __isPublic
|
||||
)
|
||||
}
|
||||
def withId(__v: _root_.scala.Predef.String): BasicViewJson = copy(id = __v)
|
||||
def withShortName(__v: _root_.scala.Predef.String): BasicViewJson = copy(shortName = __v)
|
||||
def withIsPublic(__v: _root_.scala.Boolean): BasicViewJson = copy(isPublic = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = id
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = shortName
|
||||
if (__t != "") __t else null
|
||||
}
|
||||
case 3 => {
|
||||
val __t = isPublic
|
||||
if (__t != false) __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PString(id)
|
||||
case 2 => _root_.scalapb.descriptors.PString(shortName)
|
||||
case 3 => _root_.scalapb.descriptors.PBoolean(isPublic)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson
|
||||
}
|
||||
|
||||
object BasicViewJson extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson(
|
||||
__fieldsMap.getOrElse(__fields.get(0), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(1), "").asInstanceOf[_root_.scala.Predef.String],
|
||||
__fieldsMap.getOrElse(__fields.get(2), false).asInstanceOf[_root_.scala.Boolean]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.scala.Boolean]).getOrElse(false)
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = code.obp.grpc.api.BasicAccountJSONGrpc.javaDescriptor.getNestedTypes.get(0)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = code.obp.grpc.api.BasicAccountJSONGrpc.scalaDescriptor.nestedMessages(0)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson(
|
||||
)
|
||||
implicit class BasicViewJsonLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson](_l) {
|
||||
def id: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.id)((c_, f_) => c_.copy(id = f_))
|
||||
def shortName: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.shortName)((c_, f_) => c_.copy(shortName = f_))
|
||||
def isPublic: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.isPublic)((c_, f_) => c_.copy(isPublic = f_))
|
||||
}
|
||||
final val ID_FIELD_NUMBER = 1
|
||||
final val SHORT_NAME_FIELD_NUMBER = 2
|
||||
final val IS_PUBLIC_FIELD_NUMBER = 3
|
||||
}
|
||||
|
||||
implicit class BasicAccountJSONGrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.BasicAccountJSONGrpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.BasicAccountJSONGrpc](_l) {
|
||||
def id: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.id)((c_, f_) => c_.copy(id = f_))
|
||||
def label: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.label)((c_, f_) => c_.copy(label = f_))
|
||||
def bankId: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.bankId)((c_, f_) => c_.copy(bankId = f_))
|
||||
def viewsAvailable: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.Seq[code.obp.grpc.api.BasicAccountJSONGrpc.BasicViewJson]] = field(_.viewsAvailable)((c_, f_) => c_.copy(viewsAvailable = f_))
|
||||
}
|
||||
final val ID_FIELD_NUMBER = 1
|
||||
final val LABEL_FIELD_NUMBER = 2
|
||||
final val BANK_ID_FIELD_NUMBER = 3
|
||||
final val VIEWS_AVAILABLE_FIELD_NUMBER = 4
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
148
obp-api/src/main/scala/code/obp/grpc/api/ObpServiceGrpc.scala
Normal file
148
obp-api/src/main/scala/code/obp/grpc/api/ObpServiceGrpc.scala
Normal file
@ -0,0 +1,148 @@
|
||||
package code.obp.grpc.api
|
||||
|
||||
object ObpServiceGrpc {
|
||||
val METHOD_GET_BANKS: _root_.io.grpc.MethodDescriptor[com.google.protobuf.empty.Empty, code.obp.grpc.api.BanksJson400Grpc] =
|
||||
_root_.io.grpc.MethodDescriptor.newBuilder()
|
||||
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("code.obp.grpc.ObpService", "getBanks"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(new scalapb.grpc.Marshaller(com.google.protobuf.empty.Empty))
|
||||
.setResponseMarshaller(new scalapb.grpc.Marshaller(code.obp.grpc.api.BanksJson400Grpc))
|
||||
.build()
|
||||
|
||||
val METHOD_GET_PRIVATE_ACCOUNTS_AT_ONE_BANK: _root_.io.grpc.MethodDescriptor[code.obp.grpc.api.BankIdUserIdGrpc, code.obp.grpc.api.AccountsGrpc] =
|
||||
_root_.io.grpc.MethodDescriptor.newBuilder()
|
||||
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("code.obp.grpc.ObpService", "getPrivateAccountsAtOneBank"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(new scalapb.grpc.Marshaller(code.obp.grpc.api.BankIdUserIdGrpc))
|
||||
.setResponseMarshaller(new scalapb.grpc.Marshaller(code.obp.grpc.api.AccountsGrpc))
|
||||
.build()
|
||||
|
||||
val METHOD_GET_BANK_ACCOUNTS_BALANCES: _root_.io.grpc.MethodDescriptor[code.obp.grpc.api.BankIdGrpc, code.obp.grpc.api.AccountsBalancesV310JsonGrpc] =
|
||||
_root_.io.grpc.MethodDescriptor.newBuilder()
|
||||
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("code.obp.grpc.ObpService", "getBankAccountsBalances"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(new scalapb.grpc.Marshaller(code.obp.grpc.api.BankIdGrpc))
|
||||
.setResponseMarshaller(new scalapb.grpc.Marshaller(code.obp.grpc.api.AccountsBalancesV310JsonGrpc))
|
||||
.build()
|
||||
|
||||
val METHOD_GET_CORE_TRANSACTIONS_FOR_BANK_ACCOUNT: _root_.io.grpc.MethodDescriptor[code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc, code.obp.grpc.api.CoreTransactionsJsonV300Grpc] =
|
||||
_root_.io.grpc.MethodDescriptor.newBuilder()
|
||||
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("code.obp.grpc.ObpService", "getCoreTransactionsForBankAccount"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(new scalapb.grpc.Marshaller(code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc))
|
||||
.setResponseMarshaller(new scalapb.grpc.Marshaller(code.obp.grpc.api.CoreTransactionsJsonV300Grpc))
|
||||
.build()
|
||||
|
||||
val SERVICE: _root_.io.grpc.ServiceDescriptor =
|
||||
_root_.io.grpc.ServiceDescriptor.newBuilder("code.obp.grpc.ObpService")
|
||||
.setSchemaDescriptor(new _root_.scalapb.grpc.ConcreteProtoFileDescriptorSupplier(code.obp.grpc.api.ApiProto.javaDescriptor))
|
||||
.addMethod(METHOD_GET_BANKS)
|
||||
.addMethod(METHOD_GET_PRIVATE_ACCOUNTS_AT_ONE_BANK)
|
||||
.addMethod(METHOD_GET_BANK_ACCOUNTS_BALANCES)
|
||||
.addMethod(METHOD_GET_CORE_TRANSACTIONS_FOR_BANK_ACCOUNT)
|
||||
.build()
|
||||
|
||||
trait ObpService extends _root_.scalapb.grpc.AbstractService {
|
||||
override def serviceCompanion = ObpService
|
||||
def getBanks(request: com.google.protobuf.empty.Empty): scala.concurrent.Future[code.obp.grpc.api.BanksJson400Grpc]
|
||||
def getPrivateAccountsAtOneBank(request: code.obp.grpc.api.BankIdUserIdGrpc): scala.concurrent.Future[code.obp.grpc.api.AccountsGrpc]
|
||||
def getBankAccountsBalances(request: code.obp.grpc.api.BankIdGrpc): scala.concurrent.Future[code.obp.grpc.api.AccountsBalancesV310JsonGrpc]
|
||||
def getCoreTransactionsForBankAccount(request: code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc): scala.concurrent.Future[code.obp.grpc.api.CoreTransactionsJsonV300Grpc]
|
||||
}
|
||||
|
||||
object ObpService extends _root_.scalapb.grpc.ServiceCompanion[ObpService] {
|
||||
implicit def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[ObpService] = this
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = code.obp.grpc.api.ApiProto.javaDescriptor.getServices().get(0)
|
||||
}
|
||||
|
||||
trait ObpServiceBlockingClient {
|
||||
def serviceCompanion = ObpService
|
||||
def getBanks(request: com.google.protobuf.empty.Empty): code.obp.grpc.api.BanksJson400Grpc
|
||||
def getPrivateAccountsAtOneBank(request: code.obp.grpc.api.BankIdUserIdGrpc): code.obp.grpc.api.AccountsGrpc
|
||||
def getBankAccountsBalances(request: code.obp.grpc.api.BankIdGrpc): code.obp.grpc.api.AccountsBalancesV310JsonGrpc
|
||||
def getCoreTransactionsForBankAccount(request: code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc): code.obp.grpc.api.CoreTransactionsJsonV300Grpc
|
||||
}
|
||||
|
||||
class ObpServiceBlockingStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[ObpServiceBlockingStub](channel, options) with ObpServiceBlockingClient {
|
||||
override def getBanks(request: com.google.protobuf.empty.Empty): code.obp.grpc.api.BanksJson400Grpc = {
|
||||
_root_.io.grpc.stub.ClientCalls.blockingUnaryCall(channel.newCall(METHOD_GET_BANKS, options), request)
|
||||
}
|
||||
|
||||
override def getPrivateAccountsAtOneBank(request: code.obp.grpc.api.BankIdUserIdGrpc): code.obp.grpc.api.AccountsGrpc = {
|
||||
_root_.io.grpc.stub.ClientCalls.blockingUnaryCall(channel.newCall(METHOD_GET_PRIVATE_ACCOUNTS_AT_ONE_BANK, options), request)
|
||||
}
|
||||
|
||||
override def getBankAccountsBalances(request: code.obp.grpc.api.BankIdGrpc): code.obp.grpc.api.AccountsBalancesV310JsonGrpc = {
|
||||
_root_.io.grpc.stub.ClientCalls.blockingUnaryCall(channel.newCall(METHOD_GET_BANK_ACCOUNTS_BALANCES, options), request)
|
||||
}
|
||||
|
||||
override def getCoreTransactionsForBankAccount(request: code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc): code.obp.grpc.api.CoreTransactionsJsonV300Grpc = {
|
||||
_root_.io.grpc.stub.ClientCalls.blockingUnaryCall(channel.newCall(METHOD_GET_CORE_TRANSACTIONS_FOR_BANK_ACCOUNT, options), request)
|
||||
}
|
||||
|
||||
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): ObpServiceBlockingStub = new ObpServiceBlockingStub(channel, options)
|
||||
}
|
||||
|
||||
class ObpServiceStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[ObpServiceStub](channel, options) with ObpService {
|
||||
override def getBanks(request: com.google.protobuf.empty.Empty): scala.concurrent.Future[code.obp.grpc.api.BanksJson400Grpc] = {
|
||||
scalapb.grpc.Grpc.guavaFuture2ScalaFuture(_root_.io.grpc.stub.ClientCalls.futureUnaryCall(channel.newCall(METHOD_GET_BANKS, options), request))
|
||||
}
|
||||
|
||||
override def getPrivateAccountsAtOneBank(request: code.obp.grpc.api.BankIdUserIdGrpc): scala.concurrent.Future[code.obp.grpc.api.AccountsGrpc] = {
|
||||
scalapb.grpc.Grpc.guavaFuture2ScalaFuture(_root_.io.grpc.stub.ClientCalls.futureUnaryCall(channel.newCall(METHOD_GET_PRIVATE_ACCOUNTS_AT_ONE_BANK, options), request))
|
||||
}
|
||||
|
||||
override def getBankAccountsBalances(request: code.obp.grpc.api.BankIdGrpc): scala.concurrent.Future[code.obp.grpc.api.AccountsBalancesV310JsonGrpc] = {
|
||||
scalapb.grpc.Grpc.guavaFuture2ScalaFuture(_root_.io.grpc.stub.ClientCalls.futureUnaryCall(channel.newCall(METHOD_GET_BANK_ACCOUNTS_BALANCES, options), request))
|
||||
}
|
||||
|
||||
override def getCoreTransactionsForBankAccount(request: code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc): scala.concurrent.Future[code.obp.grpc.api.CoreTransactionsJsonV300Grpc] = {
|
||||
scalapb.grpc.Grpc.guavaFuture2ScalaFuture(_root_.io.grpc.stub.ClientCalls.futureUnaryCall(channel.newCall(METHOD_GET_CORE_TRANSACTIONS_FOR_BANK_ACCOUNT, options), request))
|
||||
}
|
||||
|
||||
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): ObpServiceStub = new ObpServiceStub(channel, options)
|
||||
}
|
||||
|
||||
def bindService(serviceImpl: ObpService, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition =
|
||||
_root_.io.grpc.ServerServiceDefinition.builder(SERVICE)
|
||||
.addMethod(
|
||||
METHOD_GET_BANKS,
|
||||
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall(new _root_.io.grpc.stub.ServerCalls.UnaryMethod[com.google.protobuf.empty.Empty, code.obp.grpc.api.BanksJson400Grpc] {
|
||||
override def invoke(request: com.google.protobuf.empty.Empty, observer: _root_.io.grpc.stub.StreamObserver[code.obp.grpc.api.BanksJson400Grpc]): Unit =
|
||||
serviceImpl.getBanks(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
|
||||
executionContext)
|
||||
}))
|
||||
.addMethod(
|
||||
METHOD_GET_PRIVATE_ACCOUNTS_AT_ONE_BANK,
|
||||
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall(new _root_.io.grpc.stub.ServerCalls.UnaryMethod[code.obp.grpc.api.BankIdUserIdGrpc, code.obp.grpc.api.AccountsGrpc] {
|
||||
override def invoke(request: code.obp.grpc.api.BankIdUserIdGrpc, observer: _root_.io.grpc.stub.StreamObserver[code.obp.grpc.api.AccountsGrpc]): Unit =
|
||||
serviceImpl.getPrivateAccountsAtOneBank(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
|
||||
executionContext)
|
||||
}))
|
||||
.addMethod(
|
||||
METHOD_GET_BANK_ACCOUNTS_BALANCES,
|
||||
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall(new _root_.io.grpc.stub.ServerCalls.UnaryMethod[code.obp.grpc.api.BankIdGrpc, code.obp.grpc.api.AccountsBalancesV310JsonGrpc] {
|
||||
override def invoke(request: code.obp.grpc.api.BankIdGrpc, observer: _root_.io.grpc.stub.StreamObserver[code.obp.grpc.api.AccountsBalancesV310JsonGrpc]): Unit =
|
||||
serviceImpl.getBankAccountsBalances(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
|
||||
executionContext)
|
||||
}))
|
||||
.addMethod(
|
||||
METHOD_GET_CORE_TRANSACTIONS_FOR_BANK_ACCOUNT,
|
||||
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall(new _root_.io.grpc.stub.ServerCalls.UnaryMethod[code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc, code.obp.grpc.api.CoreTransactionsJsonV300Grpc] {
|
||||
override def invoke(request: code.obp.grpc.api.BankIdAccountIdAndUserIdGrpc, observer: _root_.io.grpc.stub.StreamObserver[code.obp.grpc.api.CoreTransactionsJsonV300Grpc]): Unit =
|
||||
serviceImpl.getCoreTransactionsForBankAccount(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
|
||||
executionContext)
|
||||
}))
|
||||
.build()
|
||||
|
||||
def blockingStub(channel: _root_.io.grpc.Channel): ObpServiceBlockingStub = new ObpServiceBlockingStub(channel)
|
||||
|
||||
def stub(channel: _root_.io.grpc.Channel): ObpServiceStub = new ObpServiceStub(channel)
|
||||
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = code.obp.grpc.api.ApiProto.javaDescriptor.getServices().get(0)
|
||||
|
||||
}
|
||||
1506
obp-api/src/main/scala/code/obp/grpc/api/ViewJSONV121Grpc.scala
Normal file
1506
obp-api/src/main/scala/code/obp/grpc/api/ViewJSONV121Grpc.scala
Normal file
File diff suppressed because it is too large
Load Diff
103
obp-api/src/main/scala/code/obp/grpc/api/ViewsJSONV121Grpc.scala
Normal file
103
obp-api/src/main/scala/code/obp/grpc/api/ViewsJSONV121Grpc.scala
Normal file
@ -0,0 +1,103 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package code.obp.grpc.api
|
||||
|
||||
@SerialVersionUID(0L)
|
||||
final case class ViewsJSONV121Grpc(
|
||||
views: _root_.scala.collection.Seq[code.obp.grpc.api.ViewJSONV121Grpc] = _root_.scala.collection.Seq.empty
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[ViewsJSONV121Grpc] with scalapb.lenses.Updatable[ViewsJSONV121Grpc] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
views.foreach(views => __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(views.serializedSize) + views.serializedSize)
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
views.foreach { __v =>
|
||||
_output__.writeTag(1, 2)
|
||||
_output__.writeUInt32NoTag(__v.serializedSize)
|
||||
__v.writeTo(_output__)
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): code.obp.grpc.api.ViewsJSONV121Grpc = {
|
||||
val __views = (_root_.scala.collection.immutable.Vector.newBuilder[code.obp.grpc.api.ViewJSONV121Grpc] ++= this.views)
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 10 =>
|
||||
__views += _root_.scalapb.LiteParser.readMessage(_input__, code.obp.grpc.api.ViewJSONV121Grpc.defaultInstance)
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
code.obp.grpc.api.ViewsJSONV121Grpc(
|
||||
views = __views.result()
|
||||
)
|
||||
}
|
||||
def clearViews = copy(views = _root_.scala.collection.Seq.empty)
|
||||
def addViews(__vs: code.obp.grpc.api.ViewJSONV121Grpc*): ViewsJSONV121Grpc = addAllViews(__vs)
|
||||
def addAllViews(__vs: TraversableOnce[code.obp.grpc.api.ViewJSONV121Grpc]): ViewsJSONV121Grpc = copy(views = views ++ __vs)
|
||||
def withViews(__v: _root_.scala.collection.Seq[code.obp.grpc.api.ViewJSONV121Grpc]): ViewsJSONV121Grpc = copy(views = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => views
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PRepeated(views.map(_.toPMessage)(_root_.scala.collection.breakOut))
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = code.obp.grpc.api.ViewsJSONV121Grpc
|
||||
}
|
||||
|
||||
object ViewsJSONV121Grpc extends scalapb.GeneratedMessageCompanion[code.obp.grpc.api.ViewsJSONV121Grpc] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[code.obp.grpc.api.ViewsJSONV121Grpc] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): code.obp.grpc.api.ViewsJSONV121Grpc = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
code.obp.grpc.api.ViewsJSONV121Grpc(
|
||||
__fieldsMap.getOrElse(__fields.get(0), Nil).asInstanceOf[_root_.scala.collection.Seq[code.obp.grpc.api.ViewJSONV121Grpc]]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[code.obp.grpc.api.ViewsJSONV121Grpc] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
code.obp.grpc.api.ViewsJSONV121Grpc(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.collection.Seq[code.obp.grpc.api.ViewJSONV121Grpc]]).getOrElse(_root_.scala.collection.Seq.empty)
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = ApiProto.javaDescriptor.getMessageTypes.get(3)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = ApiProto.scalaDescriptor.messages(3)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
|
||||
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
|
||||
(__number: @_root_.scala.unchecked) match {
|
||||
case 1 => __out = code.obp.grpc.api.ViewJSONV121Grpc
|
||||
}
|
||||
__out
|
||||
}
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = code.obp.grpc.api.ViewsJSONV121Grpc(
|
||||
)
|
||||
implicit class ViewsJSONV121GrpcLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, code.obp.grpc.api.ViewsJSONV121Grpc]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, code.obp.grpc.api.ViewsJSONV121Grpc](_l) {
|
||||
def views: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.collection.Seq[code.obp.grpc.api.ViewJSONV121Grpc]] = field(_.views)((c_, f_) => c_.copy(views = f_))
|
||||
}
|
||||
final val VIEWS_FIELD_NUMBER = 1
|
||||
}
|
||||
65
obp-api/src/main/scala/com/google/protobuf/empty/Empty.scala
Normal file
65
obp-api/src/main/scala/com/google/protobuf/empty/Empty.scala
Normal file
@ -0,0 +1,65 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package com.google.protobuf.empty
|
||||
|
||||
/** A generic empty message that you can re-use to avoid defining duplicated
|
||||
* empty messages in your APIs. A typical example is to use it as the request
|
||||
* or the response type of an API method. For instance:
|
||||
*
|
||||
* service Foo {
|
||||
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
* }
|
||||
*
|
||||
* The JSON representation for `Empty` is empty JSON object `{}`.
|
||||
*/
|
||||
@SerialVersionUID(0L)
|
||||
final case class Empty(
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[Empty] with scalapb.lenses.Updatable[Empty] {
|
||||
final override def serializedSize: _root_.scala.Int = 0
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): com.google.protobuf.empty.Empty = {
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
com.google.protobuf.empty.Empty(
|
||||
)
|
||||
}
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = throw new MatchError(__fieldNumber)
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = throw new MatchError(__field)
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = com.google.protobuf.empty.Empty
|
||||
}
|
||||
|
||||
object Empty extends scalapb.GeneratedMessageCompanion[com.google.protobuf.empty.Empty] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[com.google.protobuf.empty.Empty] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): com.google.protobuf.empty.Empty = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
com.google.protobuf.empty.Empty(
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[com.google.protobuf.empty.Empty] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
com.google.protobuf.empty.Empty(
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = EmptyProto.javaDescriptor.getMessageTypes.get(0)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = EmptyProto.scalaDescriptor.messages(0)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = com.google.protobuf.empty.Empty(
|
||||
)
|
||||
implicit class EmptyLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.empty.Empty]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.empty.Empty](_l) {
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package com.google.protobuf.empty
|
||||
|
||||
object EmptyProto extends _root_.scalapb.GeneratedFileObject {
|
||||
lazy val dependencies: Seq[_root_.scalapb.GeneratedFileObject] = Seq(
|
||||
)
|
||||
lazy val messagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq(
|
||||
com.google.protobuf.empty.Empty
|
||||
)
|
||||
private lazy val ProtoBytes: Array[Byte] =
|
||||
scalapb.Encoding.fromBase64(scala.collection.Seq(
|
||||
"""Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIHCgVFbXB0eUJ2ChNjb20uZ29vZ2xlLnByb
|
||||
3RvYnVmQgpFbXB0eVByb3RvUAFaJ2dpdGh1Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy9lbXB0efgBAaICA0dQQqoCHkdvb
|
||||
2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z"""
|
||||
).mkString)
|
||||
lazy val scalaDescriptor: _root_.scalapb.descriptors.FileDescriptor = {
|
||||
val scalaProto = com.google.protobuf.descriptor.FileDescriptorProto.parseFrom(ProtoBytes)
|
||||
_root_.scalapb.descriptors.FileDescriptor.buildFrom(scalaProto, dependencies.map(_.scalaDescriptor))
|
||||
}
|
||||
lazy val javaDescriptor: com.google.protobuf.Descriptors.FileDescriptor = {
|
||||
val javaProto = com.google.protobuf.DescriptorProtos.FileDescriptorProto.parseFrom(ProtoBytes)
|
||||
com.google.protobuf.Descriptors.FileDescriptor.buildFrom(javaProto, Array(
|
||||
))
|
||||
}
|
||||
@deprecated("Use javaDescriptor instead. In a future version this will refer to scalaDescriptor.", "ScalaPB 0.5.47")
|
||||
def descriptor: com.google.protobuf.Descriptors.FileDescriptor = javaDescriptor
|
||||
}
|
||||
@ -0,0 +1,213 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package com.google.protobuf.timestamp
|
||||
|
||||
/** A Timestamp represents a point in time independent of any time zone or local
|
||||
* calendar, encoded as a count of seconds and fractions of seconds at
|
||||
* nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
||||
* January 1, 1970, in the proleptic Gregorian calendar which extends the
|
||||
* Gregorian calendar backwards to year one.
|
||||
*
|
||||
* All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
||||
* second table is needed for interpretation, using a [24-hour linear
|
||||
* smear](https://developers.google.com/time/smear).
|
||||
*
|
||||
* The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
||||
* restricting to that range, we ensure that we can convert to and from [RFC
|
||||
* 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
||||
*
|
||||
* # Examples
|
||||
*
|
||||
* Example 1: Compute Timestamp from POSIX `time()`.
|
||||
*
|
||||
* Timestamp timestamp;
|
||||
* timestamp.set_seconds(time(NULL));
|
||||
* timestamp.set_nanos(0);
|
||||
*
|
||||
* Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
||||
*
|
||||
* struct timeval tv;
|
||||
* gettimeofday(&tv, NULL);
|
||||
*
|
||||
* Timestamp timestamp;
|
||||
* timestamp.set_seconds(tv.tv_sec);
|
||||
* timestamp.set_nanos(tv.tv_usec * 1000);
|
||||
*
|
||||
* Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
||||
*
|
||||
* FILETIME ft;
|
||||
* GetSystemTimeAsFileTime(&ft);
|
||||
* UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
||||
*
|
||||
* // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
||||
* // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
||||
* Timestamp timestamp;
|
||||
* timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
||||
* timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
||||
*
|
||||
* Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
||||
*
|
||||
* long millis = System.currentTimeMillis();
|
||||
*
|
||||
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
||||
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
||||
*
|
||||
*
|
||||
* Example 5: Compute Timestamp from current time in Python.
|
||||
*
|
||||
* timestamp = Timestamp()
|
||||
* timestamp.GetCurrentTime()
|
||||
*
|
||||
* # JSON Mapping
|
||||
*
|
||||
* In JSON format, the Timestamp type is encoded as a string in the
|
||||
* [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
||||
* format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
||||
* where {year} is always expressed using four digits while {month}, {day},
|
||||
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
||||
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
||||
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
||||
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
||||
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
||||
* able to accept both UTC and other timezones (as indicated by an offset).
|
||||
*
|
||||
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
||||
* 01:30 UTC on January 15, 2017.
|
||||
*
|
||||
* In JavaScript, one can convert a Date object to this format using the
|
||||
* standard
|
||||
* [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
||||
* method. In Python, a standard `datetime.datetime` object can be converted
|
||||
* to this format using
|
||||
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
||||
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
||||
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
||||
* http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
||||
* ) to obtain a formatter capable of generating timestamps in this format.
|
||||
*
|
||||
* @param seconds
|
||||
* Represents seconds of UTC time since Unix epoch
|
||||
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
||||
* 9999-12-31T23:59:59Z inclusive.
|
||||
* @param nanos
|
||||
* Non-negative fractions of a second at nanosecond resolution. Negative
|
||||
* second values with fractions must still have non-negative nanos values
|
||||
* that count forward in time. Must be from 0 to 999,999,999
|
||||
* inclusive.
|
||||
*/
|
||||
@SerialVersionUID(0L)
|
||||
final case class Timestamp(
|
||||
seconds: _root_.scala.Long = 0L,
|
||||
nanos: _root_.scala.Int = 0
|
||||
) extends scalapb.GeneratedMessage with scalapb.Message[Timestamp] with scalapb.lenses.Updatable[Timestamp] {
|
||||
@transient
|
||||
private[this] var __serializedSizeCachedValue: _root_.scala.Int = 0
|
||||
private[this] def __computeSerializedValue(): _root_.scala.Int = {
|
||||
var __size = 0
|
||||
if (seconds != 0L) { __size += _root_.com.google.protobuf.CodedOutputStream.computeInt64Size(1, seconds) }
|
||||
if (nanos != 0) { __size += _root_.com.google.protobuf.CodedOutputStream.computeInt32Size(2, nanos) }
|
||||
__size
|
||||
}
|
||||
final override def serializedSize: _root_.scala.Int = {
|
||||
var read = __serializedSizeCachedValue
|
||||
if (read == 0) {
|
||||
read = __computeSerializedValue()
|
||||
__serializedSizeCachedValue = read
|
||||
}
|
||||
read
|
||||
}
|
||||
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
|
||||
{
|
||||
val __v = seconds
|
||||
if (__v != 0L) {
|
||||
_output__.writeInt64(1, __v)
|
||||
}
|
||||
};
|
||||
{
|
||||
val __v = nanos
|
||||
if (__v != 0) {
|
||||
_output__.writeInt32(2, __v)
|
||||
}
|
||||
};
|
||||
}
|
||||
def mergeFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): com.google.protobuf.timestamp.Timestamp = {
|
||||
var __seconds = this.seconds
|
||||
var __nanos = this.nanos
|
||||
var _done__ = false
|
||||
while (!_done__) {
|
||||
val _tag__ = _input__.readTag()
|
||||
_tag__ match {
|
||||
case 0 => _done__ = true
|
||||
case 8 =>
|
||||
__seconds = _input__.readInt64()
|
||||
case 16 =>
|
||||
__nanos = _input__.readInt32()
|
||||
case tag => _input__.skipField(tag)
|
||||
}
|
||||
}
|
||||
com.google.protobuf.timestamp.Timestamp(
|
||||
seconds = __seconds,
|
||||
nanos = __nanos
|
||||
)
|
||||
}
|
||||
def withSeconds(__v: _root_.scala.Long): Timestamp = copy(seconds = __v)
|
||||
def withNanos(__v: _root_.scala.Int): Timestamp = copy(nanos = __v)
|
||||
def getFieldByNumber(__fieldNumber: _root_.scala.Int): scala.Any = {
|
||||
(__fieldNumber: @_root_.scala.unchecked) match {
|
||||
case 1 => {
|
||||
val __t = seconds
|
||||
if (__t != 0L) __t else null
|
||||
}
|
||||
case 2 => {
|
||||
val __t = nanos
|
||||
if (__t != 0) __t else null
|
||||
}
|
||||
}
|
||||
}
|
||||
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
|
||||
require(__field.containingMessage eq companion.scalaDescriptor)
|
||||
(__field.number: @_root_.scala.unchecked) match {
|
||||
case 1 => _root_.scalapb.descriptors.PLong(seconds)
|
||||
case 2 => _root_.scalapb.descriptors.PInt(nanos)
|
||||
}
|
||||
}
|
||||
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
|
||||
def companion = com.google.protobuf.timestamp.Timestamp
|
||||
}
|
||||
|
||||
object Timestamp extends scalapb.GeneratedMessageCompanion[com.google.protobuf.timestamp.Timestamp] {
|
||||
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[com.google.protobuf.timestamp.Timestamp] = this
|
||||
def fromFieldsMap(__fieldsMap: scala.collection.immutable.Map[_root_.com.google.protobuf.Descriptors.FieldDescriptor, scala.Any]): com.google.protobuf.timestamp.Timestamp = {
|
||||
require(__fieldsMap.keys.forall(_.getContainingType() == javaDescriptor), "FieldDescriptor does not match message type.")
|
||||
val __fields = javaDescriptor.getFields
|
||||
com.google.protobuf.timestamp.Timestamp(
|
||||
__fieldsMap.getOrElse(__fields.get(0), 0L).asInstanceOf[_root_.scala.Long],
|
||||
__fieldsMap.getOrElse(__fields.get(1), 0).asInstanceOf[_root_.scala.Int]
|
||||
)
|
||||
}
|
||||
implicit def messageReads: _root_.scalapb.descriptors.Reads[com.google.protobuf.timestamp.Timestamp] = _root_.scalapb.descriptors.Reads{
|
||||
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
|
||||
require(__fieldsMap.keys.forall(_.containingMessage == scalaDescriptor), "FieldDescriptor does not match message type.")
|
||||
com.google.protobuf.timestamp.Timestamp(
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Long]).getOrElse(0L),
|
||||
__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Int]).getOrElse(0)
|
||||
)
|
||||
case _ => throw new RuntimeException("Expected PMessage")
|
||||
}
|
||||
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = TimestampProto.javaDescriptor.getMessageTypes.get(0)
|
||||
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = TimestampProto.scalaDescriptor.messages(0)
|
||||
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
|
||||
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq.empty
|
||||
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
|
||||
lazy val defaultInstance = com.google.protobuf.timestamp.Timestamp(
|
||||
)
|
||||
implicit class TimestampLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.timestamp.Timestamp]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.timestamp.Timestamp](_l) {
|
||||
def seconds: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Long] = field(_.seconds)((c_, f_) => c_.copy(seconds = f_))
|
||||
def nanos: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Int] = field(_.nanos)((c_, f_) => c_.copy(nanos = f_))
|
||||
}
|
||||
final val SECONDS_FIELD_NUMBER = 1
|
||||
final val NANOS_FIELD_NUMBER = 2
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
|
||||
// Do not edit!
|
||||
//
|
||||
// Protofile syntax: PROTO3
|
||||
|
||||
package com.google.protobuf.timestamp
|
||||
|
||||
object TimestampProto extends _root_.scalapb.GeneratedFileObject {
|
||||
lazy val dependencies: Seq[_root_.scalapb.GeneratedFileObject] = Seq(
|
||||
)
|
||||
lazy val messagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_]] = Seq(
|
||||
com.google.protobuf.timestamp.Timestamp
|
||||
)
|
||||
private lazy val ProtoBytes: Array[Byte] =
|
||||
scalapb.Encoding.fromBase64(scala.collection.Seq(
|
||||
"""Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiOwoJVGltZXN0YW1wEhgKB3NlY29uZ
|
||||
HMYASABKANSB3NlY29uZHMSFAoFbmFub3MYAiABKAVSBW5hbm9zQn4KE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb
|
||||
3RvUAFaK2dpdGh1Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy90aW1lc3RhbXD4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9id
|
||||
WYuV2VsbEtub3duVHlwZXNiBnByb3RvMw=="""
|
||||
).mkString)
|
||||
lazy val scalaDescriptor: _root_.scalapb.descriptors.FileDescriptor = {
|
||||
val scalaProto = com.google.protobuf.descriptor.FileDescriptorProto.parseFrom(ProtoBytes)
|
||||
_root_.scalapb.descriptors.FileDescriptor.buildFrom(scalaProto, dependencies.map(_.scalaDescriptor))
|
||||
}
|
||||
lazy val javaDescriptor: com.google.protobuf.Descriptors.FileDescriptor = {
|
||||
val javaProto = com.google.protobuf.DescriptorProtos.FileDescriptorProto.parseFrom(ProtoBytes)
|
||||
com.google.protobuf.Descriptors.FileDescriptor.buildFrom(javaProto, Array(
|
||||
))
|
||||
}
|
||||
@deprecated("Use javaDescriptor instead. In a future version this will refer to scalaDescriptor.", "ScalaPB 0.5.47")
|
||||
def descriptor: com.google.protobuf.Descriptors.FileDescriptor = javaDescriptor
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user