Skip to content

Commit b59b4e7

Browse files
committed
Format generated sources
1 parent 8ddf843 commit b59b4e7

File tree

162 files changed

+5088
-5088
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+5088
-5088
lines changed

docs/src/main/scala/generated/com/thesamet/docs/json/JsonProto.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ package com.thesamet.docs.json
55

66
object JsonProto extends _root_.scalapb.GeneratedFileObject {
77
lazy val dependencies: Seq[_root_.scalapb.GeneratedFileObject] = Seq(
8-
com.google.protobuf.any.AnyProto
8+
_root_.com.google.protobuf.any.AnyProto
99
)
1010
lazy val messagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] =
1111
Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]](
12-
com.thesamet.docs.json.MyMessage,
13-
com.thesamet.docs.json.MyContainer
12+
_root_.com.thesamet.docs.json.MyMessage,
13+
_root_.com.thesamet.docs.json.MyContainer
1414
)
1515
private lazy val ProtoBytes: _root_.scala.Array[Byte] =
1616
scalapb.Encoding.fromBase64(scala.collection.immutable.Seq(
@@ -25,7 +25,7 @@ object JsonProto extends _root_.scalapb.GeneratedFileObject {
2525
lazy val javaDescriptor: com.google.protobuf.Descriptors.FileDescriptor = {
2626
val javaProto = com.google.protobuf.DescriptorProtos.FileDescriptorProto.parseFrom(ProtoBytes)
2727
com.google.protobuf.Descriptors.FileDescriptor.buildFrom(javaProto, _root_.scala.Array(
28-
com.google.protobuf.any.AnyProto.javaDescriptor
28+
_root_.com.google.protobuf.any.AnyProto.javaDescriptor
2929
))
3030
}
3131
@deprecated("Use javaDescriptor instead. In a future version this will refer to scalaDescriptor.", "ScalaPB 0.5.47")

docs/src/main/scala/generated/com/thesamet/docs/json/MyContainer.scala

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package com.thesamet.docs.json
55

66
@SerialVersionUID(0L)
77
final case class MyContainer(
8-
myAny: _root_.scala.Option[com.google.protobuf.any.Any] = _root_.scala.None,
8+
myAny: _root_.scala.Option[_root_.com.google.protobuf.any.Any] = _root_.scala.None,
99
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
1010
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[MyContainer] {
1111
@transient
@@ -37,9 +37,9 @@ final case class MyContainer(
3737
};
3838
unknownFields.writeTo(_output__)
3939
}
40-
def getMyAny: com.google.protobuf.any.Any = myAny.getOrElse(com.google.protobuf.any.Any.defaultInstance)
40+
def getMyAny: _root_.com.google.protobuf.any.Any = myAny.getOrElse(_root_.com.google.protobuf.any.Any.defaultInstance)
4141
def clearMyAny: MyContainer = copy(myAny = _root_.scala.None)
42-
def withMyAny(__v: com.google.protobuf.any.Any): MyContainer = copy(myAny = _root_.scala.Option(__v))
42+
def withMyAny(__v: _root_.com.google.protobuf.any.Any): MyContainer = copy(myAny = _root_.scala.Option(__v))
4343
def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v)
4444
def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty)
4545
def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = {
@@ -54,63 +54,63 @@ final case class MyContainer(
5454
}
5555
}
5656
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
57-
def companion: com.thesamet.docs.json.MyContainer.type = com.thesamet.docs.json.MyContainer
57+
def companion: _root_.com.thesamet.docs.json.MyContainer.type = _root_.com.thesamet.docs.json.MyContainer
5858
// @@protoc_insertion_point(GeneratedMessage[com.thesamet.docs.MyContainer])
5959
}
6060

61-
object MyContainer extends scalapb.GeneratedMessageCompanion[com.thesamet.docs.json.MyContainer] {
62-
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[com.thesamet.docs.json.MyContainer] = this
63-
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): com.thesamet.docs.json.MyContainer = {
64-
var __myAny: _root_.scala.Option[com.google.protobuf.any.Any] = _root_.scala.None
61+
object MyContainer extends scalapb.GeneratedMessageCompanion[_root_.com.thesamet.docs.json.MyContainer] {
62+
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[_root_.com.thesamet.docs.json.MyContainer] = this
63+
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): _root_.com.thesamet.docs.json.MyContainer = {
64+
var __myAny: _root_.scala.Option[_root_.com.google.protobuf.any.Any] = _root_.scala.None
6565
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
6666
var _done__ = false
6767
while (!_done__) {
6868
val _tag__ = _input__.readTag()
6969
_tag__ match {
7070
case 0 => _done__ = true
7171
case 10 =>
72-
__myAny = _root_.scala.Option(__myAny.fold(_root_.scalapb.LiteParser.readMessage[com.google.protobuf.any.Any](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
72+
__myAny = _root_.scala.Option(__myAny.fold(_root_.scalapb.LiteParser.readMessage[_root_.com.google.protobuf.any.Any](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
7373
case tag =>
7474
if (_unknownFields__ == null) {
7575
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
7676
}
7777
val _ = _unknownFields__.parseField(tag, _input__)
7878
}
7979
}
80-
com.thesamet.docs.json.MyContainer(
80+
_root_.com.thesamet.docs.json.MyContainer(
8181
myAny = __myAny,
8282
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
8383
)
8484
}
85-
implicit def messageReads: _root_.scalapb.descriptors.Reads[com.thesamet.docs.json.MyContainer] = _root_.scalapb.descriptors.Reads{
85+
implicit def messageReads: _root_.scalapb.descriptors.Reads[_root_.com.thesamet.docs.json.MyContainer] = _root_.scalapb.descriptors.Reads{
8686
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
8787
_root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
88-
com.thesamet.docs.json.MyContainer(
89-
myAny = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).flatMap(_.as[_root_.scala.Option[com.google.protobuf.any.Any]])
88+
_root_.com.thesamet.docs.json.MyContainer(
89+
myAny = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).flatMap(_.as[_root_.scala.Option[_root_.com.google.protobuf.any.Any]])
9090
)
9191
case _ => throw new RuntimeException("Expected PMessage")
9292
}
93-
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = com.thesamet.docs.json.JsonProto.javaDescriptor.getMessageTypes().get(1)
94-
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = com.thesamet.docs.json.JsonProto.scalaDescriptor.messages(1)
93+
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = _root_.com.thesamet.docs.json.JsonProto.javaDescriptor.getMessageTypes().get(1)
94+
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = _root_.com.thesamet.docs.json.JsonProto.scalaDescriptor.messages(1)
9595
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
9696
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
9797
(__number: @_root_.scala.unchecked) match {
98-
case 1 => __out = com.google.protobuf.any.Any
98+
case 1 => __out = _root_.com.google.protobuf.any.Any
9999
}
100100
__out
101101
}
102102
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty
103103
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
104-
lazy val defaultInstance = com.thesamet.docs.json.MyContainer(
104+
lazy val defaultInstance = _root_.com.thesamet.docs.json.MyContainer(
105105
myAny = _root_.scala.None
106106
)
107-
implicit class MyContainerLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.thesamet.docs.json.MyContainer]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.thesamet.docs.json.MyContainer](_l) {
108-
def myAny: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.any.Any] = field(_.getMyAny)((c_, f_) => c_.copy(myAny = _root_.scala.Option(f_)))
109-
def optionalMyAny: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[com.google.protobuf.any.Any]] = field(_.myAny)((c_, f_) => c_.copy(myAny = f_))
107+
implicit class MyContainerLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.thesamet.docs.json.MyContainer]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, _root_.com.thesamet.docs.json.MyContainer](_l) {
108+
def myAny: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.google.protobuf.any.Any] = field(_.getMyAny)((c_, f_) => c_.copy(myAny = _root_.scala.Option(f_)))
109+
def optionalMyAny: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[_root_.com.google.protobuf.any.Any]] = field(_.myAny)((c_, f_) => c_.copy(myAny = f_))
110110
}
111111
final val MY_ANY_FIELD_NUMBER = 1
112112
def of(
113-
myAny: _root_.scala.Option[com.google.protobuf.any.Any]
113+
myAny: _root_.scala.Option[_root_.com.google.protobuf.any.Any]
114114
): _root_.com.thesamet.docs.json.MyContainer = _root_.com.thesamet.docs.json.MyContainer(
115115
myAny
116116
)

docs/src/main/scala/generated/com/thesamet/docs/json/MyMessage.scala

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ final case class MyMessage(
5858
}
5959
}
6060
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
61-
def companion: com.thesamet.docs.json.MyMessage.type = com.thesamet.docs.json.MyMessage
61+
def companion: _root_.com.thesamet.docs.json.MyMessage.type = _root_.com.thesamet.docs.json.MyMessage
6262
// @@protoc_insertion_point(GeneratedMessage[com.thesamet.docs.MyMessage])
6363
}
6464

65-
object MyMessage extends scalapb.GeneratedMessageCompanion[com.thesamet.docs.json.MyMessage] {
66-
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[com.thesamet.docs.json.MyMessage] = this
67-
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): com.thesamet.docs.json.MyMessage = {
65+
object MyMessage extends scalapb.GeneratedMessageCompanion[_root_.com.thesamet.docs.json.MyMessage] {
66+
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[_root_.com.thesamet.docs.json.MyMessage] = this
67+
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): _root_.com.thesamet.docs.json.MyMessage = {
6868
var __x: _root_.scala.Int = 0
6969
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
7070
var _done__ = false
@@ -81,28 +81,28 @@ object MyMessage extends scalapb.GeneratedMessageCompanion[com.thesamet.docs.jso
8181
val _ = _unknownFields__.parseField(tag, _input__)
8282
}
8383
}
84-
com.thesamet.docs.json.MyMessage(
84+
_root_.com.thesamet.docs.json.MyMessage(
8585
x = __x,
8686
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
8787
)
8888
}
89-
implicit def messageReads: _root_.scalapb.descriptors.Reads[com.thesamet.docs.json.MyMessage] = _root_.scalapb.descriptors.Reads{
89+
implicit def messageReads: _root_.scalapb.descriptors.Reads[_root_.com.thesamet.docs.json.MyMessage] = _root_.scalapb.descriptors.Reads{
9090
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
9191
_root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
92-
com.thesamet.docs.json.MyMessage(
92+
_root_.com.thesamet.docs.json.MyMessage(
9393
x = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Int]).getOrElse(0)
9494
)
9595
case _ => throw new RuntimeException("Expected PMessage")
9696
}
97-
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = com.thesamet.docs.json.JsonProto.javaDescriptor.getMessageTypes().get(0)
98-
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = com.thesamet.docs.json.JsonProto.scalaDescriptor.messages(0)
97+
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = _root_.com.thesamet.docs.json.JsonProto.javaDescriptor.getMessageTypes().get(0)
98+
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = _root_.com.thesamet.docs.json.JsonProto.scalaDescriptor.messages(0)
9999
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
100100
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty
101101
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
102-
lazy val defaultInstance = com.thesamet.docs.json.MyMessage(
102+
lazy val defaultInstance = _root_.com.thesamet.docs.json.MyMessage(
103103
x = 0
104104
)
105-
implicit class MyMessageLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.thesamet.docs.json.MyMessage]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.thesamet.docs.json.MyMessage](_l) {
105+
implicit class MyMessageLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, _root_.com.thesamet.docs.json.MyMessage]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, _root_.com.thesamet.docs.json.MyMessage](_l) {
106106
def x: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Int] = field(_.x)((c_, f_) => c_.copy(x = f_))
107107
}
108108
final val X_FIELD_NUMBER = 1

docs/src/main/scala/generated/mytypes/duration/Duration.scala

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ final case class Duration(
5858
}
5959
}
6060
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
61-
def companion: mytypes.duration.Duration.type = mytypes.duration.Duration
61+
def companion: _root_.mytypes.duration.Duration.type = _root_.mytypes.duration.Duration
6262
// @@protoc_insertion_point(GeneratedMessage[mytypes.Duration])
6363
}
6464

65-
object Duration extends scalapb.GeneratedMessageCompanion[mytypes.duration.Duration] {
66-
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[mytypes.duration.Duration] = this
67-
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): mytypes.duration.Duration = {
65+
object Duration extends scalapb.GeneratedMessageCompanion[_root_.mytypes.duration.Duration] {
66+
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[_root_.mytypes.duration.Duration] = this
67+
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): _root_.mytypes.duration.Duration = {
6868
var __seconds: _root_.scala.Int = 0
6969
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
7070
var _done__ = false
@@ -81,28 +81,28 @@ object Duration extends scalapb.GeneratedMessageCompanion[mytypes.duration.Durat
8181
val _ = _unknownFields__.parseField(tag, _input__)
8282
}
8383
}
84-
mytypes.duration.Duration(
84+
_root_.mytypes.duration.Duration(
8585
seconds = __seconds,
8686
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
8787
)
8888
}
89-
implicit def messageReads: _root_.scalapb.descriptors.Reads[mytypes.duration.Duration] = _root_.scalapb.descriptors.Reads{
89+
implicit def messageReads: _root_.scalapb.descriptors.Reads[_root_.mytypes.duration.Duration] = _root_.scalapb.descriptors.Reads{
9090
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
9191
_root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
92-
mytypes.duration.Duration(
92+
_root_.mytypes.duration.Duration(
9393
seconds = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Int]).getOrElse(0)
9494
)
9595
case _ => throw new RuntimeException("Expected PMessage")
9696
}
97-
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = mytypes.duration.DurationProto.javaDescriptor.getMessageTypes().get(0)
98-
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = mytypes.duration.DurationProto.scalaDescriptor.messages(0)
97+
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = _root_.mytypes.duration.DurationProto.javaDescriptor.getMessageTypes().get(0)
98+
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = _root_.mytypes.duration.DurationProto.scalaDescriptor.messages(0)
9999
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = throw new MatchError(__number)
100100
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty
101101
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber)
102-
lazy val defaultInstance = mytypes.duration.Duration(
102+
lazy val defaultInstance = _root_.mytypes.duration.Duration(
103103
seconds = 0
104104
)
105-
implicit class DurationLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, mytypes.duration.Duration]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, mytypes.duration.Duration](_l) {
105+
implicit class DurationLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, _root_.mytypes.duration.Duration]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, _root_.mytypes.duration.Duration](_l) {
106106
def seconds: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Int] = field(_.seconds)((c_, f_) => c_.copy(seconds = f_))
107107
}
108108
final val SECONDS_FIELD_NUMBER = 1

docs/src/main/scala/generated/mytypes/duration/DurationProto.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ package mytypes.duration
55

66
object DurationProto extends _root_.scalapb.GeneratedFileObject {
77
lazy val dependencies: Seq[_root_.scalapb.GeneratedFileObject] = Seq(
8-
scalapb.options.ScalapbProto
8+
_root_.scalapb.options.ScalapbProto
99
)
1010
lazy val messagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] =
1111
Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]](
12-
mytypes.duration.Duration
12+
_root_.mytypes.duration.Duration
1313
)
1414
private lazy val ProtoBytes: _root_.scala.Array[Byte] =
1515
scalapb.Encoding.fromBase64(scala.collection.immutable.Seq(
@@ -23,7 +23,7 @@ object DurationProto extends _root_.scalapb.GeneratedFileObject {
2323
lazy val javaDescriptor: com.google.protobuf.Descriptors.FileDescriptor = {
2424
val javaProto = com.google.protobuf.DescriptorProtos.FileDescriptorProto.parseFrom(ProtoBytes)
2525
com.google.protobuf.Descriptors.FileDescriptor.buildFrom(javaProto, _root_.scala.Array(
26-
scalapb.options.ScalapbProto.javaDescriptor
26+
_root_.scalapb.options.ScalapbProto.javaDescriptor
2727
))
2828
}
2929
@deprecated("Use javaDescriptor instead. In a future version this will refer to scalaDescriptor.", "ScalaPB 0.5.47")

0 commit comments

Comments
 (0)