diff --git a/compiler-plugin/src/main/scala/scalapb/compiler/CollectionMethods.scala b/compiler-plugin/src/main/scala/scalapb/compiler/CollectionMethods.scala index 1c03d75fc..0a602580c 100644 --- a/compiler-plugin/src/main/scala/scalapb/compiler/CollectionMethods.scala +++ b/compiler-plugin/src/main/scala/scalapb/compiler/CollectionMethods.scala @@ -38,7 +38,11 @@ class CollectionMethods(fd: FieldDescriptor, val implicits: DescriptorImplicits) } def empty: String = adapter match { - case None => s"${fd.collectionType}.empty" + case None => + if (fd.collectionType == ScalaSeq) + s"${ScalaVector}.empty" + else + s"${fd.collectionType}.empty" case Some(tc) => s"${tc.fullName}.empty" } diff --git a/compiler-plugin/src/main/scala/scalapb/compiler/DescriptorImplicits.scala b/compiler-plugin/src/main/scala/scalapb/compiler/DescriptorImplicits.scala index 4246b56c5..11ffa4744 100644 --- a/compiler-plugin/src/main/scala/scalapb/compiler/DescriptorImplicits.scala +++ b/compiler-plugin/src/main/scala/scalapb/compiler/DescriptorImplicits.scala @@ -1098,7 +1098,7 @@ class DescriptorImplicits private[compiler] ( object DescriptorImplicits { val ScalaSeq = "_root_.scala.Seq" val ScalaMap = "_root_.scala.collection.immutable.Map" - val ScalaVector = "_root_.scala.collection.immutable.Vector" + val ScalaVector = "_root_.scala.Vector" val ScalaIterable = "_root_.scala.collection.immutable.Iterable" val ScalaIterator = "_root_.scala.collection.Iterator" val ScalaOption = "_root_.scala.Option" diff --git a/docs/src/main/scala/generated/scalapb/docs/person/Person.scala b/docs/src/main/scala/generated/scalapb/docs/person/Person.scala index b3ae297c5..fd617145d 100644 --- a/docs/src/main/scala/generated/scalapb/docs/person/Person.scala +++ b/docs/src/main/scala/generated/scalapb/docs/person/Person.scala @@ -7,7 +7,7 @@ package scalapb.docs.person final case class Person( name: _root_.scala.Predef.String = "", age: _root_.scala.Int = 0, - addresses: _root_.scala.Seq[scalapb.docs.person.Person.Address] = _root_.scala.Seq.empty, + addresses: _root_.scala.Seq[scalapb.docs.person.Person.Address] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[Person] { @transient @@ -67,7 +67,7 @@ final case class Person( } def withName(__v: _root_.scala.Predef.String): Person = copy(name = __v) def withAge(__v: _root_.scala.Int): Person = copy(age = __v) - def clearAddresses = copy(addresses = _root_.scala.Seq.empty) + def clearAddresses = copy(addresses = _root_.scala.Vector.empty) def addAddresses(__vs: scalapb.docs.person.Person.Address *): Person = addAllAddresses(__vs) def addAllAddresses(__vs: Iterable[scalapb.docs.person.Person.Address]): Person = copy(addresses = addresses ++ __vs) def withAddresses(__v: _root_.scala.Seq[scalapb.docs.person.Person.Address]): Person = copy(addresses = __v) @@ -158,7 +158,7 @@ object Person extends scalapb.GeneratedMessageCompanion[scalapb.docs.person.Pers lazy val defaultInstance = scalapb.docs.person.Person( name = "", age = 0, - addresses = _root_.scala.Seq.empty + addresses = _root_.scala.Vector.empty ) sealed abstract class AddressType(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum { type EnumType = scalapb.docs.person.Person.AddressType diff --git a/docs/src/main/scala/generated/scalapb/perf/protos/EnumVector.scala b/docs/src/main/scala/generated/scalapb/perf/protos/EnumVector.scala index e3d730327..be5bdeea6 100644 --- a/docs/src/main/scala/generated/scalapb/perf/protos/EnumVector.scala +++ b/docs/src/main/scala/generated/scalapb/perf/protos/EnumVector.scala @@ -5,7 +5,7 @@ package scalapb.perf.protos @SerialVersionUID(0L) final case class EnumVector( - colors: _root_.scala.Seq[scalapb.perf.protos.Color] = _root_.scala.Seq.empty, + colors: _root_.scala.Seq[scalapb.perf.protos.Color] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[EnumVector] { private[this] def colorsSerializedSize = { @@ -45,7 +45,7 @@ final case class EnumVector( }; unknownFields.writeTo(_output__) } - def clearColors = copy(colors = _root_.scala.Seq.empty) + def clearColors = copy(colors = _root_.scala.Vector.empty) def addColors(__vs: scalapb.perf.protos.Color *): EnumVector = addAllColors(__vs) def addAllColors(__vs: Iterable[scalapb.perf.protos.Color]): EnumVector = copy(colors = colors ++ __vs) def withColors(__v: _root_.scala.Seq[scalapb.perf.protos.Color]): EnumVector = copy(colors = __v) @@ -117,7 +117,7 @@ object EnumVector extends scalapb.GeneratedMessageCompanion[scalapb.perf.protos. } } lazy val defaultInstance = scalapb.perf.protos.EnumVector( - colors = _root_.scala.Seq.empty + colors = _root_.scala.Vector.empty ) implicit class EnumVectorLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, scalapb.perf.protos.EnumVector]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, scalapb.perf.protos.EnumVector](_l) { def colors: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[scalapb.perf.protos.Color]] = field(_.colors)((c_, f_) => c_.copy(colors = f_)) diff --git a/docs/src/main/scala/generated/scalapb/perf/protos/IntVector.scala b/docs/src/main/scala/generated/scalapb/perf/protos/IntVector.scala index 447b0b0fc..d4e53d282 100644 --- a/docs/src/main/scala/generated/scalapb/perf/protos/IntVector.scala +++ b/docs/src/main/scala/generated/scalapb/perf/protos/IntVector.scala @@ -5,7 +5,7 @@ package scalapb.perf.protos @SerialVersionUID(0L) final case class IntVector( - ints: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Seq.empty, + ints: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[IntVector] { private[this] def intsSerializedSize = { @@ -45,7 +45,7 @@ final case class IntVector( }; unknownFields.writeTo(_output__) } - def clearInts = copy(ints = _root_.scala.Seq.empty) + def clearInts = copy(ints = _root_.scala.Vector.empty) def addInts(__vs: _root_.scala.Int *): IntVector = addAllInts(__vs) def addAllInts(__vs: Iterable[_root_.scala.Int]): IntVector = copy(ints = ints ++ __vs) def withInts(__v: _root_.scala.Seq[_root_.scala.Int]): IntVector = copy(ints = __v) @@ -113,7 +113,7 @@ object IntVector extends scalapb.GeneratedMessageCompanion[scalapb.perf.protos.I lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = scalapb.perf.protos.IntVector( - ints = _root_.scala.Seq.empty + ints = _root_.scala.Vector.empty ) implicit class IntVectorLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, scalapb.perf.protos.IntVector]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, scalapb.perf.protos.IntVector](_l) { def ints: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Int]] = field(_.ints)((c_, f_) => c_.copy(ints = f_)) diff --git a/docs/src/main/scala/generated/scalapb/perf/protos/MessageContainer.scala b/docs/src/main/scala/generated/scalapb/perf/protos/MessageContainer.scala index 030ad14f8..f64354cce 100644 --- a/docs/src/main/scala/generated/scalapb/perf/protos/MessageContainer.scala +++ b/docs/src/main/scala/generated/scalapb/perf/protos/MessageContainer.scala @@ -9,7 +9,7 @@ package scalapb.perf.protos @SerialVersionUID(0L) final case class MessageContainer( opt: _root_.scala.Option[scalapb.perf.protos.SimpleMessage] = _root_.scala.None, - rep: _root_.scala.Seq[scalapb.perf.protos.SimpleMessage] = _root_.scala.Seq.empty, + rep: _root_.scala.Seq[scalapb.perf.protos.SimpleMessage] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[MessageContainer] { @transient @@ -54,7 +54,7 @@ final case class MessageContainer( def getOpt: scalapb.perf.protos.SimpleMessage = opt.getOrElse(scalapb.perf.protos.SimpleMessage.defaultInstance) def clearOpt: MessageContainer = copy(opt = _root_.scala.None) def withOpt(__v: scalapb.perf.protos.SimpleMessage): MessageContainer = copy(opt = _root_.scala.Option(__v)) - def clearRep = copy(rep = _root_.scala.Seq.empty) + def clearRep = copy(rep = _root_.scala.Vector.empty) def addRep(__vs: scalapb.perf.protos.SimpleMessage *): MessageContainer = addAllRep(__vs) def addAllRep(__vs: Iterable[scalapb.perf.protos.SimpleMessage]): MessageContainer = copy(rep = rep ++ __vs) def withRep(__v: _root_.scala.Seq[scalapb.perf.protos.SimpleMessage]): MessageContainer = copy(rep = __v) @@ -129,7 +129,7 @@ object MessageContainer extends scalapb.GeneratedMessageCompanion[scalapb.perf.p def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = scalapb.perf.protos.MessageContainer( opt = _root_.scala.None, - rep = _root_.scala.Seq.empty + rep = _root_.scala.Vector.empty ) implicit class MessageContainerLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, scalapb.perf.protos.MessageContainer]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, scalapb.perf.protos.MessageContainer](_l) { def opt: _root_.scalapb.lenses.Lens[UpperPB, scalapb.perf.protos.SimpleMessage] = field(_.getOpt)((c_, f_) => c_.copy(opt = _root_.scala.Option(f_))) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/api/Api.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/api/Api.scala index ff6bc08ee..acd84b73f 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/api/Api.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/api/Api.scala @@ -51,11 +51,11 @@ package com.google.protobuf.api @SerialVersionUID(0L) final case class Api( name: _root_.scala.Predef.String = "", - methods: _root_.scala.Seq[com.google.protobuf.api.Method] = _root_.scala.Seq.empty, - options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Seq.empty, + methods: _root_.scala.Seq[com.google.protobuf.api.Method] = _root_.scala.Vector.empty, + options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Vector.empty, version: _root_.scala.Predef.String = "", sourceContext: _root_.scala.Option[com.google.protobuf.source_context.SourceContext] = _root_.scala.None, - mixins: _root_.scala.Seq[com.google.protobuf.api.Mixin] = _root_.scala.Seq.empty, + mixins: _root_.scala.Seq[com.google.protobuf.api.Mixin] = _root_.scala.Vector.empty, syntax: com.google.protobuf.`type`.Syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[Api] { @@ -158,11 +158,11 @@ final case class Api( unknownFields.writeTo(_output__) } def withName(__v: _root_.scala.Predef.String): Api = copy(name = __v) - def clearMethods = copy(methods = _root_.scala.Seq.empty) + def clearMethods = copy(methods = _root_.scala.Vector.empty) def addMethods(__vs: com.google.protobuf.api.Method *): Api = addAllMethods(__vs) def addAllMethods(__vs: Iterable[com.google.protobuf.api.Method]): Api = copy(methods = methods ++ __vs) def withMethods(__v: _root_.scala.Seq[com.google.protobuf.api.Method]): Api = copy(methods = __v) - def clearOptions = copy(options = _root_.scala.Seq.empty) + def clearOptions = copy(options = _root_.scala.Vector.empty) def addOptions(__vs: com.google.protobuf.`type`.OptionProto *): Api = addAllOptions(__vs) def addAllOptions(__vs: Iterable[com.google.protobuf.`type`.OptionProto]): Api = copy(options = options ++ __vs) def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Api = copy(options = __v) @@ -170,7 +170,7 @@ final case class Api( def getSourceContext: com.google.protobuf.source_context.SourceContext = sourceContext.getOrElse(com.google.protobuf.source_context.SourceContext.defaultInstance) def clearSourceContext: Api = copy(sourceContext = _root_.scala.None) def withSourceContext(__v: com.google.protobuf.source_context.SourceContext): Api = copy(sourceContext = _root_.scala.Option(__v)) - def clearMixins = copy(mixins = _root_.scala.Seq.empty) + def clearMixins = copy(mixins = _root_.scala.Vector.empty) def addMixins(__vs: com.google.protobuf.api.Mixin *): Api = addAllMixins(__vs) def addAllMixins(__vs: Iterable[com.google.protobuf.api.Mixin]): Api = copy(mixins = mixins ++ __vs) def withMixins(__v: _root_.scala.Seq[com.google.protobuf.api.Mixin]): Api = copy(mixins = __v) @@ -296,11 +296,11 @@ object Api extends scalapb.GeneratedMessageCompanion[com.google.protobuf.api.Api } lazy val defaultInstance = com.google.protobuf.api.Api( name = "", - methods = _root_.scala.Seq.empty, - options = _root_.scala.Seq.empty, + methods = _root_.scala.Vector.empty, + options = _root_.scala.Vector.empty, version = "", sourceContext = _root_.scala.None, - mixins = _root_.scala.Seq.empty, + mixins = _root_.scala.Vector.empty, syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2 ) implicit class ApiLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.api.Api]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.api.Api](_l) { diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/api/Method.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/api/Method.scala index 580595c41..d25dbf4ac 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/api/Method.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/api/Method.scala @@ -27,7 +27,7 @@ final case class Method( requestStreaming: _root_.scala.Boolean = false, responseTypeUrl: _root_.scala.Predef.String = "", responseStreaming: _root_.scala.Boolean = false, - options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Seq.empty, + options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Vector.empty, syntax: com.google.protobuf.`type`.Syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[Method] { @@ -143,7 +143,7 @@ final case class Method( def withRequestStreaming(__v: _root_.scala.Boolean): Method = copy(requestStreaming = __v) def withResponseTypeUrl(__v: _root_.scala.Predef.String): Method = copy(responseTypeUrl = __v) def withResponseStreaming(__v: _root_.scala.Boolean): Method = copy(responseStreaming = __v) - def clearOptions = copy(options = _root_.scala.Seq.empty) + def clearOptions = copy(options = _root_.scala.Vector.empty) def addOptions(__vs: com.google.protobuf.`type`.OptionProto *): Method = addAllOptions(__vs) def addAllOptions(__vs: Iterable[com.google.protobuf.`type`.OptionProto]): Method = copy(options = options ++ __vs) def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Method = copy(options = __v) @@ -279,7 +279,7 @@ object Method extends scalapb.GeneratedMessageCompanion[com.google.protobuf.api. requestStreaming = false, responseTypeUrl = "", responseStreaming = false, - options = _root_.scala.Seq.empty, + options = _root_.scala.Vector.empty, syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2 ) implicit class MethodLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.api.Method]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.api.Method](_l) { diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/compiler/plugin/CodeGeneratorRequest.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/compiler/plugin/CodeGeneratorRequest.scala index 3c005ee51..3801df213 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/compiler/plugin/CodeGeneratorRequest.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/compiler/plugin/CodeGeneratorRequest.scala @@ -40,10 +40,10 @@ package com.google.protobuf.compiler.plugin */ @SerialVersionUID(0L) final case class CodeGeneratorRequest( - fileToGenerate: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + fileToGenerate: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, parameter: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - protoFile: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto] = _root_.scala.Seq.empty, - sourceFileDescriptors: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto] = _root_.scala.Seq.empty, + protoFile: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto] = _root_.scala.Vector.empty, + sourceFileDescriptors: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto] = _root_.scala.Vector.empty, compilerVersion: _root_.scala.Option[com.google.protobuf.compiler.plugin.Version] = _root_.scala.None, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[CodeGeneratorRequest] { @@ -112,18 +112,18 @@ final case class CodeGeneratorRequest( }; unknownFields.writeTo(_output__) } - def clearFileToGenerate = copy(fileToGenerate = _root_.scala.Seq.empty) + def clearFileToGenerate = copy(fileToGenerate = _root_.scala.Vector.empty) def addFileToGenerate(__vs: _root_.scala.Predef.String *): CodeGeneratorRequest = addAllFileToGenerate(__vs) def addAllFileToGenerate(__vs: Iterable[_root_.scala.Predef.String]): CodeGeneratorRequest = copy(fileToGenerate = fileToGenerate ++ __vs) def withFileToGenerate(__v: _root_.scala.Seq[_root_.scala.Predef.String]): CodeGeneratorRequest = copy(fileToGenerate = __v) def getParameter: _root_.scala.Predef.String = parameter.getOrElse("") def clearParameter: CodeGeneratorRequest = copy(parameter = _root_.scala.None) def withParameter(__v: _root_.scala.Predef.String): CodeGeneratorRequest = copy(parameter = _root_.scala.Option(__v)) - def clearProtoFile = copy(protoFile = _root_.scala.Seq.empty) + def clearProtoFile = copy(protoFile = _root_.scala.Vector.empty) def addProtoFile(__vs: com.google.protobuf.descriptor.FileDescriptorProto *): CodeGeneratorRequest = addAllProtoFile(__vs) def addAllProtoFile(__vs: Iterable[com.google.protobuf.descriptor.FileDescriptorProto]): CodeGeneratorRequest = copy(protoFile = protoFile ++ __vs) def withProtoFile(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto]): CodeGeneratorRequest = copy(protoFile = __v) - def clearSourceFileDescriptors = copy(sourceFileDescriptors = _root_.scala.Seq.empty) + def clearSourceFileDescriptors = copy(sourceFileDescriptors = _root_.scala.Vector.empty) def addSourceFileDescriptors(__vs: com.google.protobuf.descriptor.FileDescriptorProto *): CodeGeneratorRequest = addAllSourceFileDescriptors(__vs) def addAllSourceFileDescriptors(__vs: Iterable[com.google.protobuf.descriptor.FileDescriptorProto]): CodeGeneratorRequest = copy(sourceFileDescriptors = sourceFileDescriptors ++ __vs) def withSourceFileDescriptors(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto]): CodeGeneratorRequest = copy(sourceFileDescriptors = __v) @@ -222,10 +222,10 @@ object CodeGeneratorRequest extends scalapb.GeneratedMessageCompanion[com.google lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.compiler.plugin.CodeGeneratorRequest( - fileToGenerate = _root_.scala.Seq.empty, + fileToGenerate = _root_.scala.Vector.empty, parameter = _root_.scala.None, - protoFile = _root_.scala.Seq.empty, - sourceFileDescriptors = _root_.scala.Seq.empty, + protoFile = _root_.scala.Vector.empty, + sourceFileDescriptors = _root_.scala.Vector.empty, compilerVersion = _root_.scala.None ) implicit class CodeGeneratorRequestLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.compiler.plugin.CodeGeneratorRequest]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.compiler.plugin.CodeGeneratorRequest](_l) { diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/compiler/plugin/CodeGeneratorResponse.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/compiler/plugin/CodeGeneratorResponse.scala index 01209757b..d7e932a2c 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/compiler/plugin/CodeGeneratorResponse.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/compiler/plugin/CodeGeneratorResponse.scala @@ -34,7 +34,7 @@ final case class CodeGeneratorResponse( supportedFeatures: _root_.scala.Option[_root_.scala.Long] = _root_.scala.None, minimumEdition: _root_.scala.Option[_root_.scala.Int] = _root_.scala.None, maximumEdition: _root_.scala.Option[_root_.scala.Int] = _root_.scala.None, - file: _root_.scala.Seq[com.google.protobuf.compiler.plugin.CodeGeneratorResponse.File] = _root_.scala.Seq.empty, + file: _root_.scala.Seq[com.google.protobuf.compiler.plugin.CodeGeneratorResponse.File] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[CodeGeneratorResponse] { @transient @@ -110,7 +110,7 @@ final case class CodeGeneratorResponse( def getMaximumEdition: _root_.scala.Int = maximumEdition.getOrElse(0) def clearMaximumEdition: CodeGeneratorResponse = copy(maximumEdition = _root_.scala.None) def withMaximumEdition(__v: _root_.scala.Int): CodeGeneratorResponse = copy(maximumEdition = _root_.scala.Option(__v)) - def clearFile = copy(file = _root_.scala.Seq.empty) + def clearFile = copy(file = _root_.scala.Vector.empty) def addFile(__vs: com.google.protobuf.compiler.plugin.CodeGeneratorResponse.File *): CodeGeneratorResponse = addAllFile(__vs) def addAllFile(__vs: Iterable[com.google.protobuf.compiler.plugin.CodeGeneratorResponse.File]): CodeGeneratorResponse = copy(file = file ++ __vs) def withFile(__v: _root_.scala.Seq[com.google.protobuf.compiler.plugin.CodeGeneratorResponse.File]): CodeGeneratorResponse = copy(file = __v) @@ -211,7 +211,7 @@ object CodeGeneratorResponse extends scalapb.GeneratedMessageCompanion[com.googl supportedFeatures = _root_.scala.None, minimumEdition = _root_.scala.None, maximumEdition = _root_.scala.None, - file = _root_.scala.Seq.empty + file = _root_.scala.Vector.empty ) /** Sync with code_generator.h. */ diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/DescriptorProto.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/DescriptorProto.scala index 0bfe8e826..534e0f1ca 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/DescriptorProto.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/DescriptorProto.scala @@ -12,15 +12,15 @@ package com.google.protobuf.descriptor @SerialVersionUID(0L) final case class DescriptorProto( name: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - field: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto] = _root_.scala.Seq.empty, - extension: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto] = _root_.scala.Seq.empty, - nestedType: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto] = _root_.scala.Seq.empty, - enumType: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto] = _root_.scala.Seq.empty, - extensionRange: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto.ExtensionRange] = _root_.scala.Seq.empty, - oneofDecl: _root_.scala.Seq[com.google.protobuf.descriptor.OneofDescriptorProto] = _root_.scala.Seq.empty, + field: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto] = _root_.scala.Vector.empty, + extension: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto] = _root_.scala.Vector.empty, + nestedType: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto] = _root_.scala.Vector.empty, + enumType: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto] = _root_.scala.Vector.empty, + extensionRange: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto.ExtensionRange] = _root_.scala.Vector.empty, + oneofDecl: _root_.scala.Seq[com.google.protobuf.descriptor.OneofDescriptorProto] = _root_.scala.Vector.empty, options: _root_.scala.Option[com.google.protobuf.descriptor.MessageOptions] = _root_.scala.None, - reservedRange: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto.ReservedRange] = _root_.scala.Seq.empty, - reservedName: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + reservedRange: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto.ReservedRange] = _root_.scala.Vector.empty, + reservedName: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[DescriptorProto] { @transient @@ -141,38 +141,38 @@ final case class DescriptorProto( def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: DescriptorProto = copy(name = _root_.scala.None) def withName(__v: _root_.scala.Predef.String): DescriptorProto = copy(name = _root_.scala.Option(__v)) - def clearField = copy(field = _root_.scala.Seq.empty) + def clearField = copy(field = _root_.scala.Vector.empty) def addField(__vs: com.google.protobuf.descriptor.FieldDescriptorProto *): DescriptorProto = addAllField(__vs) def addAllField(__vs: Iterable[com.google.protobuf.descriptor.FieldDescriptorProto]): DescriptorProto = copy(field = field ++ __vs) def withField(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto]): DescriptorProto = copy(field = __v) - def clearExtension = copy(extension = _root_.scala.Seq.empty) + def clearExtension = copy(extension = _root_.scala.Vector.empty) def addExtension(__vs: com.google.protobuf.descriptor.FieldDescriptorProto *): DescriptorProto = addAllExtension(__vs) def addAllExtension(__vs: Iterable[com.google.protobuf.descriptor.FieldDescriptorProto]): DescriptorProto = copy(extension = extension ++ __vs) def withExtension(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto]): DescriptorProto = copy(extension = __v) - def clearNestedType = copy(nestedType = _root_.scala.Seq.empty) + def clearNestedType = copy(nestedType = _root_.scala.Vector.empty) def addNestedType(__vs: com.google.protobuf.descriptor.DescriptorProto *): DescriptorProto = addAllNestedType(__vs) def addAllNestedType(__vs: Iterable[com.google.protobuf.descriptor.DescriptorProto]): DescriptorProto = copy(nestedType = nestedType ++ __vs) def withNestedType(__v: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto]): DescriptorProto = copy(nestedType = __v) - def clearEnumType = copy(enumType = _root_.scala.Seq.empty) + def clearEnumType = copy(enumType = _root_.scala.Vector.empty) def addEnumType(__vs: com.google.protobuf.descriptor.EnumDescriptorProto *): DescriptorProto = addAllEnumType(__vs) def addAllEnumType(__vs: Iterable[com.google.protobuf.descriptor.EnumDescriptorProto]): DescriptorProto = copy(enumType = enumType ++ __vs) def withEnumType(__v: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto]): DescriptorProto = copy(enumType = __v) - def clearExtensionRange = copy(extensionRange = _root_.scala.Seq.empty) + def clearExtensionRange = copy(extensionRange = _root_.scala.Vector.empty) def addExtensionRange(__vs: com.google.protobuf.descriptor.DescriptorProto.ExtensionRange *): DescriptorProto = addAllExtensionRange(__vs) def addAllExtensionRange(__vs: Iterable[com.google.protobuf.descriptor.DescriptorProto.ExtensionRange]): DescriptorProto = copy(extensionRange = extensionRange ++ __vs) def withExtensionRange(__v: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto.ExtensionRange]): DescriptorProto = copy(extensionRange = __v) - def clearOneofDecl = copy(oneofDecl = _root_.scala.Seq.empty) + def clearOneofDecl = copy(oneofDecl = _root_.scala.Vector.empty) def addOneofDecl(__vs: com.google.protobuf.descriptor.OneofDescriptorProto *): DescriptorProto = addAllOneofDecl(__vs) def addAllOneofDecl(__vs: Iterable[com.google.protobuf.descriptor.OneofDescriptorProto]): DescriptorProto = copy(oneofDecl = oneofDecl ++ __vs) def withOneofDecl(__v: _root_.scala.Seq[com.google.protobuf.descriptor.OneofDescriptorProto]): DescriptorProto = copy(oneofDecl = __v) def getOptions: com.google.protobuf.descriptor.MessageOptions = options.getOrElse(com.google.protobuf.descriptor.MessageOptions.defaultInstance) def clearOptions: DescriptorProto = copy(options = _root_.scala.None) def withOptions(__v: com.google.protobuf.descriptor.MessageOptions): DescriptorProto = copy(options = _root_.scala.Option(__v)) - def clearReservedRange = copy(reservedRange = _root_.scala.Seq.empty) + def clearReservedRange = copy(reservedRange = _root_.scala.Vector.empty) def addReservedRange(__vs: com.google.protobuf.descriptor.DescriptorProto.ReservedRange *): DescriptorProto = addAllReservedRange(__vs) def addAllReservedRange(__vs: Iterable[com.google.protobuf.descriptor.DescriptorProto.ReservedRange]): DescriptorProto = copy(reservedRange = reservedRange ++ __vs) def withReservedRange(__v: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto.ReservedRange]): DescriptorProto = copy(reservedRange = __v) - def clearReservedName = copy(reservedName = _root_.scala.Seq.empty) + def clearReservedName = copy(reservedName = _root_.scala.Vector.empty) def addReservedName(__vs: _root_.scala.Predef.String *): DescriptorProto = addAllReservedName(__vs) def addAllReservedName(__vs: Iterable[_root_.scala.Predef.String]): DescriptorProto = copy(reservedName = reservedName ++ __vs) def withReservedName(__v: _root_.scala.Seq[_root_.scala.Predef.String]): DescriptorProto = copy(reservedName = __v) @@ -313,15 +313,15 @@ object DescriptorProto extends scalapb.GeneratedMessageCompanion[com.google.prot def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.DescriptorProto( name = _root_.scala.None, - field = _root_.scala.Seq.empty, - extension = _root_.scala.Seq.empty, - nestedType = _root_.scala.Seq.empty, - enumType = _root_.scala.Seq.empty, - extensionRange = _root_.scala.Seq.empty, - oneofDecl = _root_.scala.Seq.empty, + field = _root_.scala.Vector.empty, + extension = _root_.scala.Vector.empty, + nestedType = _root_.scala.Vector.empty, + enumType = _root_.scala.Vector.empty, + extensionRange = _root_.scala.Vector.empty, + oneofDecl = _root_.scala.Vector.empty, options = _root_.scala.None, - reservedRange = _root_.scala.Seq.empty, - reservedName = _root_.scala.Seq.empty + reservedRange = _root_.scala.Vector.empty, + reservedName = _root_.scala.Vector.empty ) /** @param start * Inclusive. diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumDescriptorProto.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumDescriptorProto.scala index 45759cd2b..9d11d6113 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumDescriptorProto.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumDescriptorProto.scala @@ -16,10 +16,10 @@ package com.google.protobuf.descriptor @SerialVersionUID(0L) final case class EnumDescriptorProto( name: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - value: _root_.scala.Seq[com.google.protobuf.descriptor.EnumValueDescriptorProto] = _root_.scala.Seq.empty, + value: _root_.scala.Seq[com.google.protobuf.descriptor.EnumValueDescriptorProto] = _root_.scala.Vector.empty, options: _root_.scala.Option[com.google.protobuf.descriptor.EnumOptions] = _root_.scala.None, - reservedRange: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto.EnumReservedRange] = _root_.scala.Seq.empty, - reservedName: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + reservedRange: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto.EnumReservedRange] = _root_.scala.Vector.empty, + reservedName: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[EnumDescriptorProto] { @transient @@ -90,18 +90,18 @@ final case class EnumDescriptorProto( def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: EnumDescriptorProto = copy(name = _root_.scala.None) def withName(__v: _root_.scala.Predef.String): EnumDescriptorProto = copy(name = _root_.scala.Option(__v)) - def clearValue = copy(value = _root_.scala.Seq.empty) + def clearValue = copy(value = _root_.scala.Vector.empty) def addValue(__vs: com.google.protobuf.descriptor.EnumValueDescriptorProto *): EnumDescriptorProto = addAllValue(__vs) def addAllValue(__vs: Iterable[com.google.protobuf.descriptor.EnumValueDescriptorProto]): EnumDescriptorProto = copy(value = value ++ __vs) def withValue(__v: _root_.scala.Seq[com.google.protobuf.descriptor.EnumValueDescriptorProto]): EnumDescriptorProto = copy(value = __v) def getOptions: com.google.protobuf.descriptor.EnumOptions = options.getOrElse(com.google.protobuf.descriptor.EnumOptions.defaultInstance) def clearOptions: EnumDescriptorProto = copy(options = _root_.scala.None) def withOptions(__v: com.google.protobuf.descriptor.EnumOptions): EnumDescriptorProto = copy(options = _root_.scala.Option(__v)) - def clearReservedRange = copy(reservedRange = _root_.scala.Seq.empty) + def clearReservedRange = copy(reservedRange = _root_.scala.Vector.empty) def addReservedRange(__vs: com.google.protobuf.descriptor.EnumDescriptorProto.EnumReservedRange *): EnumDescriptorProto = addAllReservedRange(__vs) def addAllReservedRange(__vs: Iterable[com.google.protobuf.descriptor.EnumDescriptorProto.EnumReservedRange]): EnumDescriptorProto = copy(reservedRange = reservedRange ++ __vs) def withReservedRange(__v: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto.EnumReservedRange]): EnumDescriptorProto = copy(reservedRange = __v) - def clearReservedName = copy(reservedName = _root_.scala.Seq.empty) + def clearReservedName = copy(reservedName = _root_.scala.Vector.empty) def addReservedName(__vs: _root_.scala.Predef.String *): EnumDescriptorProto = addAllReservedName(__vs) def addAllReservedName(__vs: Iterable[_root_.scala.Predef.String]): EnumDescriptorProto = copy(reservedName = reservedName ++ __vs) def withReservedName(__v: _root_.scala.Seq[_root_.scala.Predef.String]): EnumDescriptorProto = copy(reservedName = __v) @@ -201,10 +201,10 @@ object EnumDescriptorProto extends scalapb.GeneratedMessageCompanion[com.google. def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.EnumDescriptorProto( name = _root_.scala.None, - value = _root_.scala.Seq.empty, + value = _root_.scala.Vector.empty, options = _root_.scala.None, - reservedRange = _root_.scala.Seq.empty, - reservedName = _root_.scala.Seq.empty + reservedRange = _root_.scala.Vector.empty, + reservedName = _root_.scala.Vector.empty ) /** Range of reserved numeric values. Reserved values may not be used by * entries in the same enum. Reserved ranges may not overlap. diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumOptions.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumOptions.scala index 327a38df4..3daae66cb 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumOptions.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumOptions.scala @@ -29,7 +29,7 @@ final case class EnumOptions( deprecated: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, @scala.deprecated(message="Marked as deprecated in proto file", "") deprecatedLegacyJsonFieldConflicts: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[EnumOptions] with _root_.scalapb.ExtendableMessage[EnumOptions] { @transient @@ -107,7 +107,7 @@ final case class EnumOptions( def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: EnumOptions = copy(features = _root_.scala.None) def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): EnumOptions = copy(features = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): EnumOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): EnumOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): EnumOptions = copy(uninterpretedOption = __v) @@ -206,7 +206,7 @@ object EnumOptions extends scalapb.GeneratedMessageCompanion[com.google.protobuf deprecated = _root_.scala.None, deprecatedLegacyJsonFieldConflicts = _root_.scala.None, features = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) implicit class EnumOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.EnumOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.EnumOptions](_l) { def allowAlias: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.getAllowAlias)((c_, f_) => c_.copy(allowAlias = _root_.scala.Option(f_))) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumValueOptions.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumValueOptions.scala index 7382d12cf..80afc3362 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumValueOptions.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumValueOptions.scala @@ -25,7 +25,7 @@ final case class EnumValueOptions( features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, debugRedact: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, featureSupport: _root_.scala.Option[com.google.protobuf.descriptor.FieldOptions.FeatureSupport] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[EnumValueOptions] with _root_.scalapb.ExtendableMessage[EnumValueOptions] { @transient @@ -105,7 +105,7 @@ final case class EnumValueOptions( def getFeatureSupport: com.google.protobuf.descriptor.FieldOptions.FeatureSupport = featureSupport.getOrElse(com.google.protobuf.descriptor.FieldOptions.FeatureSupport.defaultInstance) def clearFeatureSupport: EnumValueOptions = copy(featureSupport = _root_.scala.None) def withFeatureSupport(__v: com.google.protobuf.descriptor.FieldOptions.FeatureSupport): EnumValueOptions = copy(featureSupport = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): EnumValueOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): EnumValueOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): EnumValueOptions = copy(uninterpretedOption = __v) @@ -205,7 +205,7 @@ object EnumValueOptions extends scalapb.GeneratedMessageCompanion[com.google.pro features = _root_.scala.None, debugRedact = _root_.scala.None, featureSupport = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) implicit class EnumValueOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.EnumValueOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.EnumValueOptions](_l) { def deprecated: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.getDeprecated)((c_, f_) => c_.copy(deprecated = _root_.scala.Option(f_))) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/ExtensionRangeOptions.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/ExtensionRangeOptions.scala index 3d0338920..3a227dc81 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/ExtensionRangeOptions.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/ExtensionRangeOptions.scala @@ -18,8 +18,8 @@ package com.google.protobuf.descriptor */ @SerialVersionUID(0L) final case class ExtensionRangeOptions( - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, - declaration: _root_.scala.Seq[com.google.protobuf.descriptor.ExtensionRangeOptions.Declaration] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, + declaration: _root_.scala.Seq[com.google.protobuf.descriptor.ExtensionRangeOptions.Declaration] = _root_.scala.Vector.empty, features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, verification: _root_.scala.Option[com.google.protobuf.descriptor.ExtensionRangeOptions.VerificationState] = _root_.scala.None, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty @@ -81,11 +81,11 @@ final case class ExtensionRangeOptions( }; unknownFields.writeTo(_output__) } - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): ExtensionRangeOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): ExtensionRangeOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): ExtensionRangeOptions = copy(uninterpretedOption = __v) - def clearDeclaration = copy(declaration = _root_.scala.Seq.empty) + def clearDeclaration = copy(declaration = _root_.scala.Vector.empty) def addDeclaration(__vs: com.google.protobuf.descriptor.ExtensionRangeOptions.Declaration *): ExtensionRangeOptions = addAllDeclaration(__vs) def addAllDeclaration(__vs: Iterable[com.google.protobuf.descriptor.ExtensionRangeOptions.Declaration]): ExtensionRangeOptions = copy(declaration = declaration ++ __vs) def withDeclaration(__v: _root_.scala.Seq[com.google.protobuf.descriptor.ExtensionRangeOptions.Declaration]): ExtensionRangeOptions = copy(declaration = __v) @@ -187,8 +187,8 @@ object ExtensionRangeOptions extends scalapb.GeneratedMessageCompanion[com.googl } } lazy val defaultInstance = com.google.protobuf.descriptor.ExtensionRangeOptions( - uninterpretedOption = _root_.scala.Seq.empty, - declaration = _root_.scala.Seq.empty, + uninterpretedOption = _root_.scala.Vector.empty, + declaration = _root_.scala.Vector.empty, features = _root_.scala.None, verification = _root_.scala.None ) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FeatureSetDefaults.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FeatureSetDefaults.scala index bc824d9b5..2881955d1 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FeatureSetDefaults.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FeatureSetDefaults.scala @@ -17,7 +17,7 @@ package com.google.protobuf.descriptor */ @SerialVersionUID(0L) final case class FeatureSetDefaults( - defaults: _root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault] = _root_.scala.Seq.empty, + defaults: _root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault] = _root_.scala.Vector.empty, minimumEdition: _root_.scala.Option[com.google.protobuf.descriptor.Edition] = _root_.scala.None, maximumEdition: _root_.scala.Option[com.google.protobuf.descriptor.Edition] = _root_.scala.None, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty @@ -67,7 +67,7 @@ final case class FeatureSetDefaults( }; unknownFields.writeTo(_output__) } - def clearDefaults = copy(defaults = _root_.scala.Seq.empty) + def clearDefaults = copy(defaults = _root_.scala.Vector.empty) def addDefaults(__vs: com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault *): FeatureSetDefaults = addAllDefaults(__vs) def addAllDefaults(__vs: Iterable[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault]): FeatureSetDefaults = copy(defaults = defaults ++ __vs) def withDefaults(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault]): FeatureSetDefaults = copy(defaults = __v) @@ -161,7 +161,7 @@ object FeatureSetDefaults extends scalapb.GeneratedMessageCompanion[com.google.p } } lazy val defaultInstance = com.google.protobuf.descriptor.FeatureSetDefaults( - defaults = _root_.scala.Seq.empty, + defaults = _root_.scala.Vector.empty, minimumEdition = _root_.scala.None, maximumEdition = _root_.scala.None ) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FieldOptions.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FieldOptions.scala index f53346cb9..092a8a8ba 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FieldOptions.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FieldOptions.scala @@ -84,11 +84,11 @@ final case class FieldOptions( weak: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, debugRedact: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, retention: _root_.scala.Option[com.google.protobuf.descriptor.FieldOptions.OptionRetention] = _root_.scala.None, - targets: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.OptionTargetType] = _root_.scala.Seq.empty, - editionDefaults: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.EditionDefault] = _root_.scala.Seq.empty, + targets: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.OptionTargetType] = _root_.scala.Vector.empty, + editionDefaults: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.EditionDefault] = _root_.scala.Vector.empty, features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, featureSupport: _root_.scala.Option[com.google.protobuf.descriptor.FieldOptions.FeatureSupport] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[FieldOptions] with _root_.scalapb.ExtendableMessage[FieldOptions] { @transient @@ -257,11 +257,11 @@ final case class FieldOptions( def getRetention: com.google.protobuf.descriptor.FieldOptions.OptionRetention = retention.getOrElse(com.google.protobuf.descriptor.FieldOptions.OptionRetention.RETENTION_UNKNOWN) def clearRetention: FieldOptions = copy(retention = _root_.scala.None) def withRetention(__v: com.google.protobuf.descriptor.FieldOptions.OptionRetention): FieldOptions = copy(retention = _root_.scala.Option(__v)) - def clearTargets = copy(targets = _root_.scala.Seq.empty) + def clearTargets = copy(targets = _root_.scala.Vector.empty) def addTargets(__vs: com.google.protobuf.descriptor.FieldOptions.OptionTargetType *): FieldOptions = addAllTargets(__vs) def addAllTargets(__vs: Iterable[com.google.protobuf.descriptor.FieldOptions.OptionTargetType]): FieldOptions = copy(targets = targets ++ __vs) def withTargets(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.OptionTargetType]): FieldOptions = copy(targets = __v) - def clearEditionDefaults = copy(editionDefaults = _root_.scala.Seq.empty) + def clearEditionDefaults = copy(editionDefaults = _root_.scala.Vector.empty) def addEditionDefaults(__vs: com.google.protobuf.descriptor.FieldOptions.EditionDefault *): FieldOptions = addAllEditionDefaults(__vs) def addAllEditionDefaults(__vs: Iterable[com.google.protobuf.descriptor.FieldOptions.EditionDefault]): FieldOptions = copy(editionDefaults = editionDefaults ++ __vs) def withEditionDefaults(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.EditionDefault]): FieldOptions = copy(editionDefaults = __v) @@ -271,7 +271,7 @@ final case class FieldOptions( def getFeatureSupport: com.google.protobuf.descriptor.FieldOptions.FeatureSupport = featureSupport.getOrElse(com.google.protobuf.descriptor.FieldOptions.FeatureSupport.defaultInstance) def clearFeatureSupport: FieldOptions = copy(featureSupport = _root_.scala.None) def withFeatureSupport(__v: com.google.protobuf.descriptor.FieldOptions.FeatureSupport): FieldOptions = copy(featureSupport = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): FieldOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): FieldOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): FieldOptions = copy(uninterpretedOption = __v) @@ -459,11 +459,11 @@ object FieldOptions extends scalapb.GeneratedMessageCompanion[com.google.protobu weak = _root_.scala.None, debugRedact = _root_.scala.None, retention = _root_.scala.None, - targets = _root_.scala.Seq.empty, - editionDefaults = _root_.scala.Seq.empty, + targets = _root_.scala.Vector.empty, + editionDefaults = _root_.scala.Vector.empty, features = _root_.scala.None, featureSupport = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) sealed abstract class CType(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum { type EnumType = com.google.protobuf.descriptor.FieldOptions.CType diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileDescriptorProto.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileDescriptorProto.scala index 3681fec1b..e5dcb8b19 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileDescriptorProto.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileDescriptorProto.scala @@ -35,13 +35,13 @@ package com.google.protobuf.descriptor final case class FileDescriptorProto( name: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, `package`: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - dependency: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - publicDependency: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Seq.empty, - weakDependency: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Seq.empty, - messageType: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto] = _root_.scala.Seq.empty, - enumType: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto] = _root_.scala.Seq.empty, - service: _root_.scala.Seq[com.google.protobuf.descriptor.ServiceDescriptorProto] = _root_.scala.Seq.empty, - extension: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto] = _root_.scala.Seq.empty, + dependency: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + publicDependency: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Vector.empty, + weakDependency: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Vector.empty, + messageType: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto] = _root_.scala.Vector.empty, + enumType: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto] = _root_.scala.Vector.empty, + service: _root_.scala.Seq[com.google.protobuf.descriptor.ServiceDescriptorProto] = _root_.scala.Vector.empty, + extension: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto] = _root_.scala.Vector.empty, options: _root_.scala.Option[com.google.protobuf.descriptor.FileOptions] = _root_.scala.None, sourceCodeInfo: _root_.scala.Option[com.google.protobuf.descriptor.SourceCodeInfo] = _root_.scala.None, syntax: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, @@ -189,31 +189,31 @@ final case class FileDescriptorProto( def getPackage: _root_.scala.Predef.String = `package`.getOrElse("") def clearPackage: FileDescriptorProto = copy(`package` = _root_.scala.None) def withPackage(__v: _root_.scala.Predef.String): FileDescriptorProto = copy(`package` = _root_.scala.Option(__v)) - def clearDependency = copy(dependency = _root_.scala.Seq.empty) + def clearDependency = copy(dependency = _root_.scala.Vector.empty) def addDependency(__vs: _root_.scala.Predef.String *): FileDescriptorProto = addAllDependency(__vs) def addAllDependency(__vs: Iterable[_root_.scala.Predef.String]): FileDescriptorProto = copy(dependency = dependency ++ __vs) def withDependency(__v: _root_.scala.Seq[_root_.scala.Predef.String]): FileDescriptorProto = copy(dependency = __v) - def clearPublicDependency = copy(publicDependency = _root_.scala.Seq.empty) + def clearPublicDependency = copy(publicDependency = _root_.scala.Vector.empty) def addPublicDependency(__vs: _root_.scala.Int *): FileDescriptorProto = addAllPublicDependency(__vs) def addAllPublicDependency(__vs: Iterable[_root_.scala.Int]): FileDescriptorProto = copy(publicDependency = publicDependency ++ __vs) def withPublicDependency(__v: _root_.scala.Seq[_root_.scala.Int]): FileDescriptorProto = copy(publicDependency = __v) - def clearWeakDependency = copy(weakDependency = _root_.scala.Seq.empty) + def clearWeakDependency = copy(weakDependency = _root_.scala.Vector.empty) def addWeakDependency(__vs: _root_.scala.Int *): FileDescriptorProto = addAllWeakDependency(__vs) def addAllWeakDependency(__vs: Iterable[_root_.scala.Int]): FileDescriptorProto = copy(weakDependency = weakDependency ++ __vs) def withWeakDependency(__v: _root_.scala.Seq[_root_.scala.Int]): FileDescriptorProto = copy(weakDependency = __v) - def clearMessageType = copy(messageType = _root_.scala.Seq.empty) + def clearMessageType = copy(messageType = _root_.scala.Vector.empty) def addMessageType(__vs: com.google.protobuf.descriptor.DescriptorProto *): FileDescriptorProto = addAllMessageType(__vs) def addAllMessageType(__vs: Iterable[com.google.protobuf.descriptor.DescriptorProto]): FileDescriptorProto = copy(messageType = messageType ++ __vs) def withMessageType(__v: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto]): FileDescriptorProto = copy(messageType = __v) - def clearEnumType = copy(enumType = _root_.scala.Seq.empty) + def clearEnumType = copy(enumType = _root_.scala.Vector.empty) def addEnumType(__vs: com.google.protobuf.descriptor.EnumDescriptorProto *): FileDescriptorProto = addAllEnumType(__vs) def addAllEnumType(__vs: Iterable[com.google.protobuf.descriptor.EnumDescriptorProto]): FileDescriptorProto = copy(enumType = enumType ++ __vs) def withEnumType(__v: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto]): FileDescriptorProto = copy(enumType = __v) - def clearService = copy(service = _root_.scala.Seq.empty) + def clearService = copy(service = _root_.scala.Vector.empty) def addService(__vs: com.google.protobuf.descriptor.ServiceDescriptorProto *): FileDescriptorProto = addAllService(__vs) def addAllService(__vs: Iterable[com.google.protobuf.descriptor.ServiceDescriptorProto]): FileDescriptorProto = copy(service = service ++ __vs) def withService(__v: _root_.scala.Seq[com.google.protobuf.descriptor.ServiceDescriptorProto]): FileDescriptorProto = copy(service = __v) - def clearExtension = copy(extension = _root_.scala.Seq.empty) + def clearExtension = copy(extension = _root_.scala.Vector.empty) def addExtension(__vs: com.google.protobuf.descriptor.FieldDescriptorProto *): FileDescriptorProto = addAllExtension(__vs) def addAllExtension(__vs: Iterable[com.google.protobuf.descriptor.FieldDescriptorProto]): FileDescriptorProto = copy(extension = extension ++ __vs) def withExtension(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto]): FileDescriptorProto = copy(extension = __v) @@ -402,13 +402,13 @@ object FileDescriptorProto extends scalapb.GeneratedMessageCompanion[com.google. lazy val defaultInstance = com.google.protobuf.descriptor.FileDescriptorProto( name = _root_.scala.None, `package` = _root_.scala.None, - dependency = _root_.scala.Seq.empty, - publicDependency = _root_.scala.Seq.empty, - weakDependency = _root_.scala.Seq.empty, - messageType = _root_.scala.Seq.empty, - enumType = _root_.scala.Seq.empty, - service = _root_.scala.Seq.empty, - extension = _root_.scala.Seq.empty, + dependency = _root_.scala.Vector.empty, + publicDependency = _root_.scala.Vector.empty, + weakDependency = _root_.scala.Vector.empty, + messageType = _root_.scala.Vector.empty, + enumType = _root_.scala.Vector.empty, + service = _root_.scala.Vector.empty, + extension = _root_.scala.Vector.empty, options = _root_.scala.None, sourceCodeInfo = _root_.scala.None, syntax = _root_.scala.None, diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileDescriptorSet.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileDescriptorSet.scala index 89db6ebaf..7c2fcf23d 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileDescriptorSet.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileDescriptorSet.scala @@ -8,7 +8,7 @@ package com.google.protobuf.descriptor */ @SerialVersionUID(0L) final case class FileDescriptorSet( - file: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto] = _root_.scala.Seq.empty, + file: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[FileDescriptorSet] { @transient @@ -40,7 +40,7 @@ final case class FileDescriptorSet( }; unknownFields.writeTo(_output__) } - def clearFile = copy(file = _root_.scala.Seq.empty) + def clearFile = copy(file = _root_.scala.Vector.empty) def addFile(__vs: com.google.protobuf.descriptor.FileDescriptorProto *): FileDescriptorSet = addAllFile(__vs) def addAllFile(__vs: Iterable[com.google.protobuf.descriptor.FileDescriptorProto]): FileDescriptorSet = copy(file = file ++ __vs) def withFile(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto]): FileDescriptorSet = copy(file = __v) @@ -106,7 +106,7 @@ object FileDescriptorSet extends scalapb.GeneratedMessageCompanion[com.google.pr lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.FileDescriptorSet( - file = _root_.scala.Seq.empty + file = _root_.scala.Vector.empty ) implicit class FileDescriptorSetLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.FileDescriptorSet]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.FileDescriptorSet](_l) { def file: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto]] = field(_.file)((c_, f_) => c_.copy(file = f_)) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileOptions.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileOptions.scala index 0b6610670..d12d51208 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileOptions.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileOptions.scala @@ -112,7 +112,7 @@ final case class FileOptions( phpMetadataNamespace: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, rubyPackage: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[FileOptions] with _root_.scalapb.ExtendableMessage[FileOptions] { @transient @@ -366,7 +366,7 @@ final case class FileOptions( def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: FileOptions = copy(features = _root_.scala.None) def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FileOptions = copy(features = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): FileOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): FileOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): FileOptions = copy(uninterpretedOption = __v) @@ -597,7 +597,7 @@ object FileOptions extends scalapb.GeneratedMessageCompanion[com.google.protobuf phpMetadataNamespace = _root_.scala.None, rubyPackage = _root_.scala.None, features = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) /** Generated classes can be optimized for speed or code size. */ diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/GeneratedCodeInfo.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/GeneratedCodeInfo.scala index 8b2d58982..93e509b40 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/GeneratedCodeInfo.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/GeneratedCodeInfo.scala @@ -13,7 +13,7 @@ package com.google.protobuf.descriptor */ @SerialVersionUID(0L) final case class GeneratedCodeInfo( - annotation: _root_.scala.Seq[com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation] = _root_.scala.Seq.empty, + annotation: _root_.scala.Seq[com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[GeneratedCodeInfo] { @transient @@ -45,7 +45,7 @@ final case class GeneratedCodeInfo( }; unknownFields.writeTo(_output__) } - def clearAnnotation = copy(annotation = _root_.scala.Seq.empty) + def clearAnnotation = copy(annotation = _root_.scala.Vector.empty) def addAnnotation(__vs: com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation *): GeneratedCodeInfo = addAllAnnotation(__vs) def addAllAnnotation(__vs: Iterable[com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation]): GeneratedCodeInfo = copy(annotation = annotation ++ __vs) def withAnnotation(__v: _root_.scala.Seq[com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation]): GeneratedCodeInfo = copy(annotation = __v) @@ -114,7 +114,7 @@ object GeneratedCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.pr ) def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.GeneratedCodeInfo( - annotation = _root_.scala.Seq.empty + annotation = _root_.scala.Vector.empty ) /** @param path * Identifies the element in the original source .proto file. This field @@ -131,7 +131,7 @@ object GeneratedCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.pr */ @SerialVersionUID(0L) final case class Annotation( - path: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Seq.empty, + path: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Vector.empty, sourceFile: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, begin: _root_.scala.Option[_root_.scala.Int] = _root_.scala.None, end: _root_.scala.Option[_root_.scala.Int] = _root_.scala.None, @@ -207,7 +207,7 @@ object GeneratedCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.pr }; unknownFields.writeTo(_output__) } - def clearPath = copy(path = _root_.scala.Seq.empty) + def clearPath = copy(path = _root_.scala.Vector.empty) def addPath(__vs: _root_.scala.Int *): Annotation = addAllPath(__vs) def addAllPath(__vs: Iterable[_root_.scala.Int]): Annotation = copy(path = path ++ __vs) def withPath(__v: _root_.scala.Seq[_root_.scala.Int]): Annotation = copy(path = __v) @@ -319,7 +319,7 @@ object GeneratedCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.pr } } lazy val defaultInstance = com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation( - path = _root_.scala.Seq.empty, + path = _root_.scala.Vector.empty, sourceFile = _root_.scala.None, begin = _root_.scala.None, end = _root_.scala.None, diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/MessageOptions.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/MessageOptions.scala index 5d2675084..0e4bd8861 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/MessageOptions.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/MessageOptions.scala @@ -77,7 +77,7 @@ final case class MessageOptions( mapEntry: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, @scala.deprecated(message="Marked as deprecated in proto file", "") deprecatedLegacyJsonFieldConflicts: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[MessageOptions] with _root_.scalapb.ExtendableMessage[MessageOptions] { @transient @@ -177,7 +177,7 @@ final case class MessageOptions( def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: MessageOptions = copy(features = _root_.scala.None) def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): MessageOptions = copy(features = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): MessageOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): MessageOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): MessageOptions = copy(uninterpretedOption = __v) @@ -292,7 +292,7 @@ object MessageOptions extends scalapb.GeneratedMessageCompanion[com.google.proto mapEntry = _root_.scala.None, deprecatedLegacyJsonFieldConflicts = _root_.scala.None, features = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) implicit class MessageOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.MessageOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.MessageOptions](_l) { def messageSetWireFormat: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.getMessageSetWireFormat)((c_, f_) => c_.copy(messageSetWireFormat = _root_.scala.Option(f_))) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/MethodOptions.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/MethodOptions.scala index ab01ade0b..116738a3a 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/MethodOptions.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/MethodOptions.scala @@ -18,7 +18,7 @@ final case class MethodOptions( deprecated: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, idempotencyLevel: _root_.scala.Option[com.google.protobuf.descriptor.MethodOptions.IdempotencyLevel] = _root_.scala.None, features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[MethodOptions] with _root_.scalapb.ExtendableMessage[MethodOptions] { @transient @@ -85,7 +85,7 @@ final case class MethodOptions( def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: MethodOptions = copy(features = _root_.scala.None) def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): MethodOptions = copy(features = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): MethodOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): MethodOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): MethodOptions = copy(uninterpretedOption = __v) @@ -180,7 +180,7 @@ object MethodOptions extends scalapb.GeneratedMessageCompanion[com.google.protob deprecated = _root_.scala.None, idempotencyLevel = _root_.scala.None, features = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) /** Is this method side-effect-free (or safe in HTTP parlance), or idempotent, * or neither? HTTP based RPC implementation may choose GET verb for safe diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/OneofOptions.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/OneofOptions.scala index cc8c992f6..38bd8adfa 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/OneofOptions.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/OneofOptions.scala @@ -11,7 +11,7 @@ package com.google.protobuf.descriptor @SerialVersionUID(0L) final case class OneofOptions( features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[OneofOptions] with _root_.scalapb.ExtendableMessage[OneofOptions] { @transient @@ -56,7 +56,7 @@ final case class OneofOptions( def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: OneofOptions = copy(features = _root_.scala.None) def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): OneofOptions = copy(features = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): OneofOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): OneofOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): OneofOptions = copy(uninterpretedOption = __v) @@ -131,7 +131,7 @@ object OneofOptions extends scalapb.GeneratedMessageCompanion[com.google.protobu def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.OneofOptions( features = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) implicit class OneofOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.OneofOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.OneofOptions](_l) { def features: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.FeatureSet] = field(_.getFeatures)((c_, f_) => c_.copy(features = _root_.scala.Option(f_))) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/ServiceDescriptorProto.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/ServiceDescriptorProto.scala index dfe1fb8cf..db70837de 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/ServiceDescriptorProto.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/ServiceDescriptorProto.scala @@ -8,7 +8,7 @@ package com.google.protobuf.descriptor @SerialVersionUID(0L) final case class ServiceDescriptorProto( name: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - method: _root_.scala.Seq[com.google.protobuf.descriptor.MethodDescriptorProto] = _root_.scala.Seq.empty, + method: _root_.scala.Seq[com.google.protobuf.descriptor.MethodDescriptorProto] = _root_.scala.Vector.empty, options: _root_.scala.Option[com.google.protobuf.descriptor.ServiceOptions] = _root_.scala.None, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ServiceDescriptorProto] { @@ -62,7 +62,7 @@ final case class ServiceDescriptorProto( def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: ServiceDescriptorProto = copy(name = _root_.scala.None) def withName(__v: _root_.scala.Predef.String): ServiceDescriptorProto = copy(name = _root_.scala.Option(__v)) - def clearMethod = copy(method = _root_.scala.Seq.empty) + def clearMethod = copy(method = _root_.scala.Vector.empty) def addMethod(__vs: com.google.protobuf.descriptor.MethodDescriptorProto *): ServiceDescriptorProto = addAllMethod(__vs) def addAllMethod(__vs: Iterable[com.google.protobuf.descriptor.MethodDescriptorProto]): ServiceDescriptorProto = copy(method = method ++ __vs) def withMethod(__v: _root_.scala.Seq[com.google.protobuf.descriptor.MethodDescriptorProto]): ServiceDescriptorProto = copy(method = __v) @@ -147,7 +147,7 @@ object ServiceDescriptorProto extends scalapb.GeneratedMessageCompanion[com.goog def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.ServiceDescriptorProto( name = _root_.scala.None, - method = _root_.scala.Seq.empty, + method = _root_.scala.Vector.empty, options = _root_.scala.None ) implicit class ServiceDescriptorProtoLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.ServiceDescriptorProto]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.ServiceDescriptorProto](_l) { diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/ServiceOptions.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/ServiceOptions.scala index 8b11ce3af..186d086e2 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/ServiceOptions.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/ServiceOptions.scala @@ -17,7 +17,7 @@ package com.google.protobuf.descriptor final case class ServiceOptions( features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, deprecated: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ServiceOptions] with _root_.scalapb.ExtendableMessage[ServiceOptions] { @transient @@ -73,7 +73,7 @@ final case class ServiceOptions( def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: ServiceOptions = copy(deprecated = _root_.scala.None) def withDeprecated(__v: _root_.scala.Boolean): ServiceOptions = copy(deprecated = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): ServiceOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): ServiceOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): ServiceOptions = copy(uninterpretedOption = __v) @@ -156,7 +156,7 @@ object ServiceOptions extends scalapb.GeneratedMessageCompanion[com.google.proto lazy val defaultInstance = com.google.protobuf.descriptor.ServiceOptions( features = _root_.scala.None, deprecated = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) implicit class ServiceOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.ServiceOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.ServiceOptions](_l) { def features: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.FeatureSet] = field(_.getFeatures)((c_, f_) => c_.copy(features = _root_.scala.Option(f_))) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/SourceCodeInfo.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/SourceCodeInfo.scala index 44510f2d3..15fad7fbd 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/SourceCodeInfo.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/SourceCodeInfo.scala @@ -53,7 +53,7 @@ package com.google.protobuf.descriptor */ @SerialVersionUID(0L) final case class SourceCodeInfo( - location: _root_.scala.Seq[com.google.protobuf.descriptor.SourceCodeInfo.Location] = _root_.scala.Seq.empty, + location: _root_.scala.Seq[com.google.protobuf.descriptor.SourceCodeInfo.Location] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[SourceCodeInfo] { @transient @@ -85,7 +85,7 @@ final case class SourceCodeInfo( }; unknownFields.writeTo(_output__) } - def clearLocation = copy(location = _root_.scala.Seq.empty) + def clearLocation = copy(location = _root_.scala.Vector.empty) def addLocation(__vs: com.google.protobuf.descriptor.SourceCodeInfo.Location *): SourceCodeInfo = addAllLocation(__vs) def addAllLocation(__vs: Iterable[com.google.protobuf.descriptor.SourceCodeInfo.Location]): SourceCodeInfo = copy(location = location ++ __vs) def withLocation(__v: _root_.scala.Seq[com.google.protobuf.descriptor.SourceCodeInfo.Location]): SourceCodeInfo = copy(location = __v) @@ -154,7 +154,7 @@ object SourceCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.proto ) def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.SourceCodeInfo( - location = _root_.scala.Seq.empty + location = _root_.scala.Vector.empty ) /** @param path * Identifies which part of the FileDescriptorProto was defined at this @@ -237,11 +237,11 @@ object SourceCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.proto */ @SerialVersionUID(0L) final case class Location( - path: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Seq.empty, - span: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Seq.empty, + path: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Vector.empty, + span: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Vector.empty, leadingComments: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, trailingComments: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - leadingDetachedComments: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + leadingDetachedComments: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[Location] { private[this] def pathSerializedSize = { @@ -323,11 +323,11 @@ object SourceCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.proto }; unknownFields.writeTo(_output__) } - def clearPath = copy(path = _root_.scala.Seq.empty) + def clearPath = copy(path = _root_.scala.Vector.empty) def addPath(__vs: _root_.scala.Int *): Location = addAllPath(__vs) def addAllPath(__vs: Iterable[_root_.scala.Int]): Location = copy(path = path ++ __vs) def withPath(__v: _root_.scala.Seq[_root_.scala.Int]): Location = copy(path = __v) - def clearSpan = copy(span = _root_.scala.Seq.empty) + def clearSpan = copy(span = _root_.scala.Vector.empty) def addSpan(__vs: _root_.scala.Int *): Location = addAllSpan(__vs) def addAllSpan(__vs: Iterable[_root_.scala.Int]): Location = copy(span = span ++ __vs) def withSpan(__v: _root_.scala.Seq[_root_.scala.Int]): Location = copy(span = __v) @@ -337,7 +337,7 @@ object SourceCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.proto def getTrailingComments: _root_.scala.Predef.String = trailingComments.getOrElse("") def clearTrailingComments: Location = copy(trailingComments = _root_.scala.None) def withTrailingComments(__v: _root_.scala.Predef.String): Location = copy(trailingComments = _root_.scala.Option(__v)) - def clearLeadingDetachedComments = copy(leadingDetachedComments = _root_.scala.Seq.empty) + def clearLeadingDetachedComments = copy(leadingDetachedComments = _root_.scala.Vector.empty) def addLeadingDetachedComments(__vs: _root_.scala.Predef.String *): Location = addAllLeadingDetachedComments(__vs) def addAllLeadingDetachedComments(__vs: Iterable[_root_.scala.Predef.String]): Location = copy(leadingDetachedComments = leadingDetachedComments ++ __vs) def withLeadingDetachedComments(__v: _root_.scala.Seq[_root_.scala.Predef.String]): Location = copy(leadingDetachedComments = __v) @@ -441,11 +441,11 @@ object SourceCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.proto lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.SourceCodeInfo.Location( - path = _root_.scala.Seq.empty, - span = _root_.scala.Seq.empty, + path = _root_.scala.Vector.empty, + span = _root_.scala.Vector.empty, leadingComments = _root_.scala.None, trailingComments = _root_.scala.None, - leadingDetachedComments = _root_.scala.Seq.empty + leadingDetachedComments = _root_.scala.Vector.empty ) implicit class LocationLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.SourceCodeInfo.Location]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.SourceCodeInfo.Location](_l) { def path: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Int]] = field(_.path)((c_, f_) => c_.copy(path = f_)) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/UninterpretedOption.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/UninterpretedOption.scala index ebe11d660..77c2a603b 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/UninterpretedOption.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/UninterpretedOption.scala @@ -16,7 +16,7 @@ package com.google.protobuf.descriptor */ @SerialVersionUID(0L) final case class UninterpretedOption( - name: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption.NamePart] = _root_.scala.Seq.empty, + name: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption.NamePart] = _root_.scala.Vector.empty, identifierValue: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, positiveIntValue: _root_.scala.Option[_root_.scala.Long] = _root_.scala.None, negativeIntValue: _root_.scala.Option[_root_.scala.Long] = _root_.scala.None, @@ -102,7 +102,7 @@ final case class UninterpretedOption( }; unknownFields.writeTo(_output__) } - def clearName = copy(name = _root_.scala.Seq.empty) + def clearName = copy(name = _root_.scala.Vector.empty) def addName(__vs: com.google.protobuf.descriptor.UninterpretedOption.NamePart *): UninterpretedOption = addAllName(__vs) def addAllName(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption.NamePart]): UninterpretedOption = copy(name = name ++ __vs) def withName(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption.NamePart]): UninterpretedOption = copy(name = __v) @@ -231,7 +231,7 @@ object UninterpretedOption extends scalapb.GeneratedMessageCompanion[com.google. ) def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.UninterpretedOption( - name = _root_.scala.Seq.empty, + name = _root_.scala.Vector.empty, identifierValue = _root_.scala.None, positiveIntValue = _root_.scala.None, negativeIntValue = _root_.scala.None, diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/field_mask/FieldMask.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/field_mask/FieldMask.scala index 13af65c9a..b0d52e1d6 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/field_mask/FieldMask.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/field_mask/FieldMask.scala @@ -208,7 +208,7 @@ package com.google.protobuf.field_mask */ @SerialVersionUID(0L) final case class FieldMask( - paths: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + paths: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[FieldMask] { @transient @@ -238,7 +238,7 @@ final case class FieldMask( }; unknownFields.writeTo(_output__) } - def clearPaths = copy(paths = _root_.scala.Seq.empty) + def clearPaths = copy(paths = _root_.scala.Vector.empty) def addPaths(__vs: _root_.scala.Predef.String *): FieldMask = addAllPaths(__vs) def addAllPaths(__vs: Iterable[_root_.scala.Predef.String]): FieldMask = copy(paths = paths ++ __vs) def withPaths(__v: _root_.scala.Seq[_root_.scala.Predef.String]): FieldMask = copy(paths = __v) @@ -298,7 +298,7 @@ object FieldMask extends scalapb.GeneratedMessageCompanion[com.google.protobuf.f lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.field_mask.FieldMask( - paths = _root_.scala.Seq.empty + paths = _root_.scala.Vector.empty ) implicit class FieldMaskLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.field_mask.FieldMask]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.field_mask.FieldMask](_l) { def paths: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Predef.String]] = field(_.paths)((c_, f_) => c_.copy(paths = f_)) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/struct/ListValue.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/struct/ListValue.scala index aee3c2255..15d90c36b 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/struct/ListValue.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/struct/ListValue.scala @@ -12,7 +12,7 @@ package com.google.protobuf.struct */ @SerialVersionUID(0L) final case class ListValue( - values: _root_.scala.Seq[com.google.protobuf.struct.Value] = _root_.scala.Seq.empty, + values: _root_.scala.Seq[com.google.protobuf.struct.Value] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ListValue] { @transient @@ -44,7 +44,7 @@ final case class ListValue( }; unknownFields.writeTo(_output__) } - def clearValues = copy(values = _root_.scala.Seq.empty) + def clearValues = copy(values = _root_.scala.Vector.empty) def addValues(__vs: com.google.protobuf.struct.Value *): ListValue = addAllValues(__vs) def addAllValues(__vs: Iterable[com.google.protobuf.struct.Value]): ListValue = copy(values = values ++ __vs) def withValues(__v: _root_.scala.Seq[com.google.protobuf.struct.Value]): ListValue = copy(values = __v) @@ -110,7 +110,7 @@ object ListValue extends scalapb.GeneratedMessageCompanion[com.google.protobuf.s lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.struct.ListValue( - values = _root_.scala.Seq.empty + values = _root_.scala.Vector.empty ) implicit class ListValueLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.struct.ListValue]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.struct.ListValue](_l) { def values: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[com.google.protobuf.struct.Value]] = field(_.values)((c_, f_) => c_.copy(values = f_)) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/type/Enum.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/type/Enum.scala index 9c075023a..1aa34d5b3 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/type/Enum.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/type/Enum.scala @@ -21,8 +21,8 @@ package com.google.protobuf.`type` @SerialVersionUID(0L) final case class Enum( name: _root_.scala.Predef.String = "", - enumvalue: _root_.scala.Seq[com.google.protobuf.`type`.EnumValue] = _root_.scala.Seq.empty, - options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Seq.empty, + enumvalue: _root_.scala.Seq[com.google.protobuf.`type`.EnumValue] = _root_.scala.Vector.empty, + options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Vector.empty, sourceContext: _root_.scala.Option[com.google.protobuf.source_context.SourceContext] = _root_.scala.None, syntax: com.google.protobuf.`type`.Syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, edition: _root_.scala.Predef.String = "", @@ -117,11 +117,11 @@ final case class Enum( unknownFields.writeTo(_output__) } def withName(__v: _root_.scala.Predef.String): Enum = copy(name = __v) - def clearEnumvalue = copy(enumvalue = _root_.scala.Seq.empty) + def clearEnumvalue = copy(enumvalue = _root_.scala.Vector.empty) def addEnumvalue(__vs: com.google.protobuf.`type`.EnumValue *): Enum = addAllEnumvalue(__vs) def addAllEnumvalue(__vs: Iterable[com.google.protobuf.`type`.EnumValue]): Enum = copy(enumvalue = enumvalue ++ __vs) def withEnumvalue(__v: _root_.scala.Seq[com.google.protobuf.`type`.EnumValue]): Enum = copy(enumvalue = __v) - def clearOptions = copy(options = _root_.scala.Seq.empty) + def clearOptions = copy(options = _root_.scala.Vector.empty) def addOptions(__vs: com.google.protobuf.`type`.OptionProto *): Enum = addAllOptions(__vs) def addAllOptions(__vs: Iterable[com.google.protobuf.`type`.OptionProto]): Enum = copy(options = options ++ __vs) def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Enum = copy(options = __v) @@ -243,8 +243,8 @@ object Enum extends scalapb.GeneratedMessageCompanion[com.google.protobuf.`type` } lazy val defaultInstance = com.google.protobuf.`type`.Enum( name = "", - enumvalue = _root_.scala.Seq.empty, - options = _root_.scala.Seq.empty, + enumvalue = _root_.scala.Vector.empty, + options = _root_.scala.Vector.empty, sourceContext = _root_.scala.None, syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, edition = "" diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/type/EnumValue.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/type/EnumValue.scala index 6e5ccb23f..3d5e9a9f7 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/type/EnumValue.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/type/EnumValue.scala @@ -16,7 +16,7 @@ package com.google.protobuf.`type` final case class EnumValue( name: _root_.scala.Predef.String = "", number: _root_.scala.Int = 0, - options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Seq.empty, + options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[EnumValue] { @transient @@ -76,7 +76,7 @@ final case class EnumValue( } def withName(__v: _root_.scala.Predef.String): EnumValue = copy(name = __v) def withNumber(__v: _root_.scala.Int): EnumValue = copy(number = __v) - def clearOptions = copy(options = _root_.scala.Seq.empty) + def clearOptions = copy(options = _root_.scala.Vector.empty) def addOptions(__vs: com.google.protobuf.`type`.OptionProto *): EnumValue = addAllOptions(__vs) def addAllOptions(__vs: Iterable[com.google.protobuf.`type`.OptionProto]): EnumValue = copy(options = options ++ __vs) def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): EnumValue = copy(options = __v) @@ -164,7 +164,7 @@ object EnumValue extends scalapb.GeneratedMessageCompanion[com.google.protobuf.` lazy val defaultInstance = com.google.protobuf.`type`.EnumValue( name = "", number = 0, - options = _root_.scala.Seq.empty + options = _root_.scala.Vector.empty ) implicit class EnumValueLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.`type`.EnumValue]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.`type`.EnumValue](_l) { def name: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.name)((c_, f_) => c_.copy(name = f_)) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/type/Field.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/type/Field.scala index d2cccd058..a4b64579e 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/type/Field.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/type/Field.scala @@ -37,7 +37,7 @@ final case class Field( typeUrl: _root_.scala.Predef.String = "", oneofIndex: _root_.scala.Int = 0, packed: _root_.scala.Boolean = false, - options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Seq.empty, + options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Vector.empty, jsonName: _root_.scala.Predef.String = "", defaultValue: _root_.scala.Predef.String = "", unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty @@ -195,7 +195,7 @@ final case class Field( def withTypeUrl(__v: _root_.scala.Predef.String): Field = copy(typeUrl = __v) def withOneofIndex(__v: _root_.scala.Int): Field = copy(oneofIndex = __v) def withPacked(__v: _root_.scala.Boolean): Field = copy(packed = __v) - def clearOptions = copy(options = _root_.scala.Seq.empty) + def clearOptions = copy(options = _root_.scala.Vector.empty) def addOptions(__vs: com.google.protobuf.`type`.OptionProto *): Field = addAllOptions(__vs) def addAllOptions(__vs: Iterable[com.google.protobuf.`type`.OptionProto]): Field = copy(options = options ++ __vs) def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Field = copy(options = __v) @@ -365,7 +365,7 @@ object Field extends scalapb.GeneratedMessageCompanion[com.google.protobuf.`type typeUrl = "", oneofIndex = 0, packed = false, - options = _root_.scala.Seq.empty, + options = _root_.scala.Vector.empty, jsonName = "", defaultValue = "" ) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/type/Type.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/type/Type.scala index 0d700b470..31a0da8d3 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/type/Type.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/type/Type.scala @@ -23,9 +23,9 @@ package com.google.protobuf.`type` @SerialVersionUID(0L) final case class Type( name: _root_.scala.Predef.String = "", - fields: _root_.scala.Seq[com.google.protobuf.`type`.Field] = _root_.scala.Seq.empty, - oneofs: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Seq.empty, + fields: _root_.scala.Seq[com.google.protobuf.`type`.Field] = _root_.scala.Vector.empty, + oneofs: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Vector.empty, sourceContext: _root_.scala.Option[com.google.protobuf.source_context.SourceContext] = _root_.scala.None, syntax: com.google.protobuf.`type`.Syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, edition: _root_.scala.Predef.String = "", @@ -128,15 +128,15 @@ final case class Type( unknownFields.writeTo(_output__) } def withName(__v: _root_.scala.Predef.String): Type = copy(name = __v) - def clearFields = copy(fields = _root_.scala.Seq.empty) + def clearFields = copy(fields = _root_.scala.Vector.empty) def addFields(__vs: com.google.protobuf.`type`.Field *): Type = addAllFields(__vs) def addAllFields(__vs: Iterable[com.google.protobuf.`type`.Field]): Type = copy(fields = fields ++ __vs) def withFields(__v: _root_.scala.Seq[com.google.protobuf.`type`.Field]): Type = copy(fields = __v) - def clearOneofs = copy(oneofs = _root_.scala.Seq.empty) + def clearOneofs = copy(oneofs = _root_.scala.Vector.empty) def addOneofs(__vs: _root_.scala.Predef.String *): Type = addAllOneofs(__vs) def addAllOneofs(__vs: Iterable[_root_.scala.Predef.String]): Type = copy(oneofs = oneofs ++ __vs) def withOneofs(__v: _root_.scala.Seq[_root_.scala.Predef.String]): Type = copy(oneofs = __v) - def clearOptions = copy(options = _root_.scala.Seq.empty) + def clearOptions = copy(options = _root_.scala.Vector.empty) def addOptions(__vs: com.google.protobuf.`type`.OptionProto *): Type = addAllOptions(__vs) def addAllOptions(__vs: Iterable[com.google.protobuf.`type`.OptionProto]): Type = copy(options = options ++ __vs) def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Type = copy(options = __v) @@ -265,9 +265,9 @@ object Type extends scalapb.GeneratedMessageCompanion[com.google.protobuf.`type` } lazy val defaultInstance = com.google.protobuf.`type`.Type( name = "", - fields = _root_.scala.Seq.empty, - oneofs = _root_.scala.Seq.empty, - options = _root_.scala.Seq.empty, + fields = _root_.scala.Vector.empty, + oneofs = _root_.scala.Vector.empty, + options = _root_.scala.Vector.empty, sourceContext = _root_.scala.None, syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, edition = "" diff --git a/scalapb-runtime/src/main/scala/scalapb/options/EnumOptions.scala b/scalapb-runtime/src/main/scala/scalapb/options/EnumOptions.scala index 10163ccde..e45dacd4e 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/EnumOptions.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/EnumOptions.scala @@ -19,12 +19,12 @@ package scalapb.options */ @SerialVersionUID(0L) final case class EnumOptions( - `extends`: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - companionExtends: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + `extends`: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + companionExtends: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, `type`: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - baseAnnotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - recognizedAnnotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - unrecognizedAnnotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + baseAnnotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + recognizedAnnotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + unrecognizedAnnotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[EnumOptions] with _root_.scalapb.ExtendableMessage[EnumOptions] { @transient @@ -94,26 +94,26 @@ final case class EnumOptions( }; unknownFields.writeTo(_output__) } - def clearExtends = copy(`extends` = _root_.scala.Seq.empty) + def clearExtends = copy(`extends` = _root_.scala.Vector.empty) def addExtends(__vs: _root_.scala.Predef.String *): EnumOptions = addAllExtends(__vs) def addAllExtends(__vs: Iterable[_root_.scala.Predef.String]): EnumOptions = copy(`extends` = `extends` ++ __vs) def withExtends(__v: _root_.scala.Seq[_root_.scala.Predef.String]): EnumOptions = copy(`extends` = __v) - def clearCompanionExtends = copy(companionExtends = _root_.scala.Seq.empty) + def clearCompanionExtends = copy(companionExtends = _root_.scala.Vector.empty) def addCompanionExtends(__vs: _root_.scala.Predef.String *): EnumOptions = addAllCompanionExtends(__vs) def addAllCompanionExtends(__vs: Iterable[_root_.scala.Predef.String]): EnumOptions = copy(companionExtends = companionExtends ++ __vs) def withCompanionExtends(__v: _root_.scala.Seq[_root_.scala.Predef.String]): EnumOptions = copy(companionExtends = __v) def getType: _root_.scala.Predef.String = `type`.getOrElse("") def clearType: EnumOptions = copy(`type` = _root_.scala.None) def withType(__v: _root_.scala.Predef.String): EnumOptions = copy(`type` = _root_.scala.Option(__v)) - def clearBaseAnnotations = copy(baseAnnotations = _root_.scala.Seq.empty) + def clearBaseAnnotations = copy(baseAnnotations = _root_.scala.Vector.empty) def addBaseAnnotations(__vs: _root_.scala.Predef.String *): EnumOptions = addAllBaseAnnotations(__vs) def addAllBaseAnnotations(__vs: Iterable[_root_.scala.Predef.String]): EnumOptions = copy(baseAnnotations = baseAnnotations ++ __vs) def withBaseAnnotations(__v: _root_.scala.Seq[_root_.scala.Predef.String]): EnumOptions = copy(baseAnnotations = __v) - def clearRecognizedAnnotations = copy(recognizedAnnotations = _root_.scala.Seq.empty) + def clearRecognizedAnnotations = copy(recognizedAnnotations = _root_.scala.Vector.empty) def addRecognizedAnnotations(__vs: _root_.scala.Predef.String *): EnumOptions = addAllRecognizedAnnotations(__vs) def addAllRecognizedAnnotations(__vs: Iterable[_root_.scala.Predef.String]): EnumOptions = copy(recognizedAnnotations = recognizedAnnotations ++ __vs) def withRecognizedAnnotations(__v: _root_.scala.Seq[_root_.scala.Predef.String]): EnumOptions = copy(recognizedAnnotations = __v) - def clearUnrecognizedAnnotations = copy(unrecognizedAnnotations = _root_.scala.Seq.empty) + def clearUnrecognizedAnnotations = copy(unrecognizedAnnotations = _root_.scala.Vector.empty) def addUnrecognizedAnnotations(__vs: _root_.scala.Predef.String *): EnumOptions = addAllUnrecognizedAnnotations(__vs) def addAllUnrecognizedAnnotations(__vs: Iterable[_root_.scala.Predef.String]): EnumOptions = copy(unrecognizedAnnotations = unrecognizedAnnotations ++ __vs) def withUnrecognizedAnnotations(__v: _root_.scala.Seq[_root_.scala.Predef.String]): EnumOptions = copy(unrecognizedAnnotations = __v) @@ -208,12 +208,12 @@ object EnumOptions extends scalapb.GeneratedMessageCompanion[scalapb.options.Enu lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = scalapb.options.EnumOptions( - `extends` = _root_.scala.Seq.empty, - companionExtends = _root_.scala.Seq.empty, + `extends` = _root_.scala.Vector.empty, + companionExtends = _root_.scala.Vector.empty, `type` = _root_.scala.None, - baseAnnotations = _root_.scala.Seq.empty, - recognizedAnnotations = _root_.scala.Seq.empty, - unrecognizedAnnotations = _root_.scala.Seq.empty + baseAnnotations = _root_.scala.Vector.empty, + recognizedAnnotations = _root_.scala.Vector.empty, + unrecognizedAnnotations = _root_.scala.Vector.empty ) implicit class EnumOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, scalapb.options.EnumOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, scalapb.options.EnumOptions](_l) { def `extends`: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Predef.String]] = field(_.`extends`)((c_, f_) => c_.copy(`extends` = f_)) diff --git a/scalapb-runtime/src/main/scala/scalapb/options/EnumValueOptions.scala b/scalapb-runtime/src/main/scala/scalapb/options/EnumValueOptions.scala index 8eef266ef..37058d995 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/EnumValueOptions.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/EnumValueOptions.scala @@ -12,9 +12,9 @@ package scalapb.options */ @SerialVersionUID(0L) final case class EnumValueOptions( - `extends`: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + `extends`: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, scalaName: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - annotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + annotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[EnumValueOptions] with _root_.scalapb.ExtendableMessage[EnumValueOptions] { @transient @@ -60,14 +60,14 @@ final case class EnumValueOptions( }; unknownFields.writeTo(_output__) } - def clearExtends = copy(`extends` = _root_.scala.Seq.empty) + def clearExtends = copy(`extends` = _root_.scala.Vector.empty) def addExtends(__vs: _root_.scala.Predef.String *): EnumValueOptions = addAllExtends(__vs) def addAllExtends(__vs: Iterable[_root_.scala.Predef.String]): EnumValueOptions = copy(`extends` = `extends` ++ __vs) def withExtends(__v: _root_.scala.Seq[_root_.scala.Predef.String]): EnumValueOptions = copy(`extends` = __v) def getScalaName: _root_.scala.Predef.String = scalaName.getOrElse("") def clearScalaName: EnumValueOptions = copy(scalaName = _root_.scala.None) def withScalaName(__v: _root_.scala.Predef.String): EnumValueOptions = copy(scalaName = _root_.scala.Option(__v)) - def clearAnnotations = copy(annotations = _root_.scala.Seq.empty) + def clearAnnotations = copy(annotations = _root_.scala.Vector.empty) def addAnnotations(__vs: _root_.scala.Predef.String *): EnumValueOptions = addAllAnnotations(__vs) def addAllAnnotations(__vs: Iterable[_root_.scala.Predef.String]): EnumValueOptions = copy(annotations = annotations ++ __vs) def withAnnotations(__v: _root_.scala.Seq[_root_.scala.Predef.String]): EnumValueOptions = copy(annotations = __v) @@ -141,9 +141,9 @@ object EnumValueOptions extends scalapb.GeneratedMessageCompanion[scalapb.option lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = scalapb.options.EnumValueOptions( - `extends` = _root_.scala.Seq.empty, + `extends` = _root_.scala.Vector.empty, scalaName = _root_.scala.None, - annotations = _root_.scala.Seq.empty + annotations = _root_.scala.Vector.empty ) implicit class EnumValueOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, scalapb.options.EnumValueOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, scalapb.options.EnumValueOptions](_l) { def `extends`: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Predef.String]] = field(_.`extends`)((c_, f_) => c_.copy(`extends` = f_)) diff --git a/scalapb-runtime/src/main/scala/scalapb/options/FieldOptions.scala b/scalapb-runtime/src/main/scala/scalapb/options/FieldOptions.scala index f56cd1f7f..1023c472b 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/FieldOptions.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/FieldOptions.scala @@ -34,7 +34,7 @@ final case class FieldOptions( collection: _root_.scala.Option[scalapb.options.Collection] = _root_.scala.None, keyType: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, valueType: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - annotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + annotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, mapType: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, noDefaultValueInConstructor: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, noBox: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, @@ -168,7 +168,7 @@ final case class FieldOptions( def getValueType: _root_.scala.Predef.String = valueType.getOrElse("") def clearValueType: FieldOptions = copy(valueType = _root_.scala.None) def withValueType(__v: _root_.scala.Predef.String): FieldOptions = copy(valueType = _root_.scala.Option(__v)) - def clearAnnotations = copy(annotations = _root_.scala.Seq.empty) + def clearAnnotations = copy(annotations = _root_.scala.Vector.empty) def addAnnotations(__vs: _root_.scala.Predef.String *): FieldOptions = addAllAnnotations(__vs) def addAllAnnotations(__vs: Iterable[_root_.scala.Predef.String]): FieldOptions = copy(annotations = annotations ++ __vs) def withAnnotations(__v: _root_.scala.Seq[_root_.scala.Predef.String]): FieldOptions = copy(annotations = __v) @@ -322,7 +322,7 @@ object FieldOptions extends scalapb.GeneratedMessageCompanion[scalapb.options.Fi collection = _root_.scala.None, keyType = _root_.scala.None, valueType = _root_.scala.None, - annotations = _root_.scala.Seq.empty, + annotations = _root_.scala.Vector.empty, mapType = _root_.scala.None, noDefaultValueInConstructor = _root_.scala.None, noBox = _root_.scala.None, diff --git a/scalapb-runtime/src/main/scala/scalapb/options/MessageOptions.scala b/scalapb-runtime/src/main/scala/scalapb/options/MessageOptions.scala index 970763b92..76c1b9bde 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/MessageOptions.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/MessageOptions.scala @@ -36,19 +36,19 @@ package scalapb.options */ @SerialVersionUID(0L) final case class MessageOptions( - `extends`: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - companionExtends: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - annotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + `extends`: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + companionExtends: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + annotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, `type`: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - companionAnnotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - sealedOneofExtends: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + companionAnnotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + sealedOneofExtends: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, noBox: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, - unknownFieldsAnnotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + unknownFieldsAnnotations: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, noDefaultValuesInConstructor: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, - sealedOneofCompanionExtends: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - derives: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - sealedOneofDerives: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - sealedOneofEmptyExtends: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + sealedOneofCompanionExtends: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + derives: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + sealedOneofDerives: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + sealedOneofEmptyExtends: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[MessageOptions] with _root_.scalapb.ExtendableMessage[MessageOptions] { @transient @@ -174,52 +174,52 @@ final case class MessageOptions( }; unknownFields.writeTo(_output__) } - def clearExtends = copy(`extends` = _root_.scala.Seq.empty) + def clearExtends = copy(`extends` = _root_.scala.Vector.empty) def addExtends(__vs: _root_.scala.Predef.String *): MessageOptions = addAllExtends(__vs) def addAllExtends(__vs: Iterable[_root_.scala.Predef.String]): MessageOptions = copy(`extends` = `extends` ++ __vs) def withExtends(__v: _root_.scala.Seq[_root_.scala.Predef.String]): MessageOptions = copy(`extends` = __v) - def clearCompanionExtends = copy(companionExtends = _root_.scala.Seq.empty) + def clearCompanionExtends = copy(companionExtends = _root_.scala.Vector.empty) def addCompanionExtends(__vs: _root_.scala.Predef.String *): MessageOptions = addAllCompanionExtends(__vs) def addAllCompanionExtends(__vs: Iterable[_root_.scala.Predef.String]): MessageOptions = copy(companionExtends = companionExtends ++ __vs) def withCompanionExtends(__v: _root_.scala.Seq[_root_.scala.Predef.String]): MessageOptions = copy(companionExtends = __v) - def clearAnnotations = copy(annotations = _root_.scala.Seq.empty) + def clearAnnotations = copy(annotations = _root_.scala.Vector.empty) def addAnnotations(__vs: _root_.scala.Predef.String *): MessageOptions = addAllAnnotations(__vs) def addAllAnnotations(__vs: Iterable[_root_.scala.Predef.String]): MessageOptions = copy(annotations = annotations ++ __vs) def withAnnotations(__v: _root_.scala.Seq[_root_.scala.Predef.String]): MessageOptions = copy(annotations = __v) def getType: _root_.scala.Predef.String = `type`.getOrElse("") def clearType: MessageOptions = copy(`type` = _root_.scala.None) def withType(__v: _root_.scala.Predef.String): MessageOptions = copy(`type` = _root_.scala.Option(__v)) - def clearCompanionAnnotations = copy(companionAnnotations = _root_.scala.Seq.empty) + def clearCompanionAnnotations = copy(companionAnnotations = _root_.scala.Vector.empty) def addCompanionAnnotations(__vs: _root_.scala.Predef.String *): MessageOptions = addAllCompanionAnnotations(__vs) def addAllCompanionAnnotations(__vs: Iterable[_root_.scala.Predef.String]): MessageOptions = copy(companionAnnotations = companionAnnotations ++ __vs) def withCompanionAnnotations(__v: _root_.scala.Seq[_root_.scala.Predef.String]): MessageOptions = copy(companionAnnotations = __v) - def clearSealedOneofExtends = copy(sealedOneofExtends = _root_.scala.Seq.empty) + def clearSealedOneofExtends = copy(sealedOneofExtends = _root_.scala.Vector.empty) def addSealedOneofExtends(__vs: _root_.scala.Predef.String *): MessageOptions = addAllSealedOneofExtends(__vs) def addAllSealedOneofExtends(__vs: Iterable[_root_.scala.Predef.String]): MessageOptions = copy(sealedOneofExtends = sealedOneofExtends ++ __vs) def withSealedOneofExtends(__v: _root_.scala.Seq[_root_.scala.Predef.String]): MessageOptions = copy(sealedOneofExtends = __v) def getNoBox: _root_.scala.Boolean = noBox.getOrElse(false) def clearNoBox: MessageOptions = copy(noBox = _root_.scala.None) def withNoBox(__v: _root_.scala.Boolean): MessageOptions = copy(noBox = _root_.scala.Option(__v)) - def clearUnknownFieldsAnnotations = copy(unknownFieldsAnnotations = _root_.scala.Seq.empty) + def clearUnknownFieldsAnnotations = copy(unknownFieldsAnnotations = _root_.scala.Vector.empty) def addUnknownFieldsAnnotations(__vs: _root_.scala.Predef.String *): MessageOptions = addAllUnknownFieldsAnnotations(__vs) def addAllUnknownFieldsAnnotations(__vs: Iterable[_root_.scala.Predef.String]): MessageOptions = copy(unknownFieldsAnnotations = unknownFieldsAnnotations ++ __vs) def withUnknownFieldsAnnotations(__v: _root_.scala.Seq[_root_.scala.Predef.String]): MessageOptions = copy(unknownFieldsAnnotations = __v) def getNoDefaultValuesInConstructor: _root_.scala.Boolean = noDefaultValuesInConstructor.getOrElse(false) def clearNoDefaultValuesInConstructor: MessageOptions = copy(noDefaultValuesInConstructor = _root_.scala.None) def withNoDefaultValuesInConstructor(__v: _root_.scala.Boolean): MessageOptions = copy(noDefaultValuesInConstructor = _root_.scala.Option(__v)) - def clearSealedOneofCompanionExtends = copy(sealedOneofCompanionExtends = _root_.scala.Seq.empty) + def clearSealedOneofCompanionExtends = copy(sealedOneofCompanionExtends = _root_.scala.Vector.empty) def addSealedOneofCompanionExtends(__vs: _root_.scala.Predef.String *): MessageOptions = addAllSealedOneofCompanionExtends(__vs) def addAllSealedOneofCompanionExtends(__vs: Iterable[_root_.scala.Predef.String]): MessageOptions = copy(sealedOneofCompanionExtends = sealedOneofCompanionExtends ++ __vs) def withSealedOneofCompanionExtends(__v: _root_.scala.Seq[_root_.scala.Predef.String]): MessageOptions = copy(sealedOneofCompanionExtends = __v) - def clearDerives = copy(derives = _root_.scala.Seq.empty) + def clearDerives = copy(derives = _root_.scala.Vector.empty) def addDerives(__vs: _root_.scala.Predef.String *): MessageOptions = addAllDerives(__vs) def addAllDerives(__vs: Iterable[_root_.scala.Predef.String]): MessageOptions = copy(derives = derives ++ __vs) def withDerives(__v: _root_.scala.Seq[_root_.scala.Predef.String]): MessageOptions = copy(derives = __v) - def clearSealedOneofDerives = copy(sealedOneofDerives = _root_.scala.Seq.empty) + def clearSealedOneofDerives = copy(sealedOneofDerives = _root_.scala.Vector.empty) def addSealedOneofDerives(__vs: _root_.scala.Predef.String *): MessageOptions = addAllSealedOneofDerives(__vs) def addAllSealedOneofDerives(__vs: Iterable[_root_.scala.Predef.String]): MessageOptions = copy(sealedOneofDerives = sealedOneofDerives ++ __vs) def withSealedOneofDerives(__v: _root_.scala.Seq[_root_.scala.Predef.String]): MessageOptions = copy(sealedOneofDerives = __v) - def clearSealedOneofEmptyExtends = copy(sealedOneofEmptyExtends = _root_.scala.Seq.empty) + def clearSealedOneofEmptyExtends = copy(sealedOneofEmptyExtends = _root_.scala.Vector.empty) def addSealedOneofEmptyExtends(__vs: _root_.scala.Predef.String *): MessageOptions = addAllSealedOneofEmptyExtends(__vs) def addAllSealedOneofEmptyExtends(__vs: Iterable[_root_.scala.Predef.String]): MessageOptions = copy(sealedOneofEmptyExtends = sealedOneofEmptyExtends ++ __vs) def withSealedOneofEmptyExtends(__v: _root_.scala.Seq[_root_.scala.Predef.String]): MessageOptions = copy(sealedOneofEmptyExtends = __v) @@ -363,19 +363,19 @@ object MessageOptions extends scalapb.GeneratedMessageCompanion[scalapb.options. lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = scalapb.options.MessageOptions( - `extends` = _root_.scala.Seq.empty, - companionExtends = _root_.scala.Seq.empty, - annotations = _root_.scala.Seq.empty, + `extends` = _root_.scala.Vector.empty, + companionExtends = _root_.scala.Vector.empty, + annotations = _root_.scala.Vector.empty, `type` = _root_.scala.None, - companionAnnotations = _root_.scala.Seq.empty, - sealedOneofExtends = _root_.scala.Seq.empty, + companionAnnotations = _root_.scala.Vector.empty, + sealedOneofExtends = _root_.scala.Vector.empty, noBox = _root_.scala.None, - unknownFieldsAnnotations = _root_.scala.Seq.empty, + unknownFieldsAnnotations = _root_.scala.Vector.empty, noDefaultValuesInConstructor = _root_.scala.None, - sealedOneofCompanionExtends = _root_.scala.Seq.empty, - derives = _root_.scala.Seq.empty, - sealedOneofDerives = _root_.scala.Seq.empty, - sealedOneofEmptyExtends = _root_.scala.Seq.empty + sealedOneofCompanionExtends = _root_.scala.Vector.empty, + derives = _root_.scala.Vector.empty, + sealedOneofDerives = _root_.scala.Vector.empty, + sealedOneofEmptyExtends = _root_.scala.Vector.empty ) implicit class MessageOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, scalapb.options.MessageOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, scalapb.options.MessageOptions](_l) { def `extends`: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Predef.String]] = field(_.`extends`)((c_, f_) => c_.copy(`extends` = f_)) diff --git a/scalapb-runtime/src/main/scala/scalapb/options/OneofOptions.scala b/scalapb-runtime/src/main/scala/scalapb/options/OneofOptions.scala index 8d5cab264..2f5a71f31 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/OneofOptions.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/OneofOptions.scala @@ -10,7 +10,7 @@ package scalapb.options */ @SerialVersionUID(0L) final case class OneofOptions( - `extends`: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + `extends`: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, scalaName: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[OneofOptions] with _root_.scalapb.ExtendableMessage[OneofOptions] { @@ -49,7 +49,7 @@ final case class OneofOptions( }; unknownFields.writeTo(_output__) } - def clearExtends = copy(`extends` = _root_.scala.Seq.empty) + def clearExtends = copy(`extends` = _root_.scala.Vector.empty) def addExtends(__vs: _root_.scala.Predef.String *): OneofOptions = addAllExtends(__vs) def addAllExtends(__vs: Iterable[_root_.scala.Predef.String]): OneofOptions = copy(`extends` = `extends` ++ __vs) def withExtends(__v: _root_.scala.Seq[_root_.scala.Predef.String]): OneofOptions = copy(`extends` = __v) @@ -119,7 +119,7 @@ object OneofOptions extends scalapb.GeneratedMessageCompanion[scalapb.options.On lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = scalapb.options.OneofOptions( - `extends` = _root_.scala.Seq.empty, + `extends` = _root_.scala.Vector.empty, scalaName = _root_.scala.None ) implicit class OneofOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, scalapb.options.OneofOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, scalapb.options.OneofOptions](_l) { diff --git a/scalapb-runtime/src/main/scala/scalapb/options/ScalaPbOptions.scala b/scalapb-runtime/src/main/scala/scalapb/options/ScalaPbOptions.scala index 73e99a209..c7131ce45 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/ScalaPbOptions.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/ScalaPbOptions.scala @@ -89,8 +89,8 @@ package scalapb.options final case class ScalaPbOptions( packageName: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, flatPackage: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, - `import`: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - preamble: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + `import`: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + preamble: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, singleFile: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, noPrimitiveWrappers: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, primitiveWrappers: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, @@ -106,12 +106,12 @@ final case class ScalaPbOptions( enumStripPrefix: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, bytesType: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, javaConversions: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, - auxMessageOptions: _root_.scala.Seq[scalapb.options.ScalaPbOptions.AuxMessageOptions] = _root_.scala.Seq.empty, - auxFieldOptions: _root_.scala.Seq[scalapb.options.ScalaPbOptions.AuxFieldOptions] = _root_.scala.Seq.empty, - auxEnumOptions: _root_.scala.Seq[scalapb.options.ScalaPbOptions.AuxEnumOptions] = _root_.scala.Seq.empty, - auxEnumValueOptions: _root_.scala.Seq[scalapb.options.ScalaPbOptions.AuxEnumValueOptions] = _root_.scala.Seq.empty, - preprocessors: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - fieldTransformations: _root_.scala.Seq[scalapb.options.FieldTransformation] = _root_.scala.Seq.empty, + auxMessageOptions: _root_.scala.Seq[scalapb.options.ScalaPbOptions.AuxMessageOptions] = _root_.scala.Vector.empty, + auxFieldOptions: _root_.scala.Seq[scalapb.options.ScalaPbOptions.AuxFieldOptions] = _root_.scala.Vector.empty, + auxEnumOptions: _root_.scala.Seq[scalapb.options.ScalaPbOptions.AuxEnumOptions] = _root_.scala.Vector.empty, + auxEnumValueOptions: _root_.scala.Seq[scalapb.options.ScalaPbOptions.AuxEnumValueOptions] = _root_.scala.Vector.empty, + preprocessors: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + fieldTransformations: _root_.scala.Seq[scalapb.options.FieldTransformation] = _root_.scala.Vector.empty, ignoreAllTransformations: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, getters: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, scala3Sources: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, @@ -394,11 +394,11 @@ final case class ScalaPbOptions( def getFlatPackage: _root_.scala.Boolean = flatPackage.getOrElse(false) def clearFlatPackage: ScalaPbOptions = copy(flatPackage = _root_.scala.None) def withFlatPackage(__v: _root_.scala.Boolean): ScalaPbOptions = copy(flatPackage = _root_.scala.Option(__v)) - def clearImport = copy(`import` = _root_.scala.Seq.empty) + def clearImport = copy(`import` = _root_.scala.Vector.empty) def addImport(__vs: _root_.scala.Predef.String *): ScalaPbOptions = addAllImport(__vs) def addAllImport(__vs: Iterable[_root_.scala.Predef.String]): ScalaPbOptions = copy(`import` = `import` ++ __vs) def withImport(__v: _root_.scala.Seq[_root_.scala.Predef.String]): ScalaPbOptions = copy(`import` = __v) - def clearPreamble = copy(preamble = _root_.scala.Seq.empty) + def clearPreamble = copy(preamble = _root_.scala.Vector.empty) def addPreamble(__vs: _root_.scala.Predef.String *): ScalaPbOptions = addAllPreamble(__vs) def addAllPreamble(__vs: Iterable[_root_.scala.Predef.String]): ScalaPbOptions = copy(preamble = preamble ++ __vs) def withPreamble(__v: _root_.scala.Seq[_root_.scala.Predef.String]): ScalaPbOptions = copy(preamble = __v) @@ -447,27 +447,27 @@ final case class ScalaPbOptions( def getJavaConversions: _root_.scala.Boolean = javaConversions.getOrElse(false) def clearJavaConversions: ScalaPbOptions = copy(javaConversions = _root_.scala.None) def withJavaConversions(__v: _root_.scala.Boolean): ScalaPbOptions = copy(javaConversions = _root_.scala.Option(__v)) - def clearAuxMessageOptions = copy(auxMessageOptions = _root_.scala.Seq.empty) + def clearAuxMessageOptions = copy(auxMessageOptions = _root_.scala.Vector.empty) def addAuxMessageOptions(__vs: scalapb.options.ScalaPbOptions.AuxMessageOptions *): ScalaPbOptions = addAllAuxMessageOptions(__vs) def addAllAuxMessageOptions(__vs: Iterable[scalapb.options.ScalaPbOptions.AuxMessageOptions]): ScalaPbOptions = copy(auxMessageOptions = auxMessageOptions ++ __vs) def withAuxMessageOptions(__v: _root_.scala.Seq[scalapb.options.ScalaPbOptions.AuxMessageOptions]): ScalaPbOptions = copy(auxMessageOptions = __v) - def clearAuxFieldOptions = copy(auxFieldOptions = _root_.scala.Seq.empty) + def clearAuxFieldOptions = copy(auxFieldOptions = _root_.scala.Vector.empty) def addAuxFieldOptions(__vs: scalapb.options.ScalaPbOptions.AuxFieldOptions *): ScalaPbOptions = addAllAuxFieldOptions(__vs) def addAllAuxFieldOptions(__vs: Iterable[scalapb.options.ScalaPbOptions.AuxFieldOptions]): ScalaPbOptions = copy(auxFieldOptions = auxFieldOptions ++ __vs) def withAuxFieldOptions(__v: _root_.scala.Seq[scalapb.options.ScalaPbOptions.AuxFieldOptions]): ScalaPbOptions = copy(auxFieldOptions = __v) - def clearAuxEnumOptions = copy(auxEnumOptions = _root_.scala.Seq.empty) + def clearAuxEnumOptions = copy(auxEnumOptions = _root_.scala.Vector.empty) def addAuxEnumOptions(__vs: scalapb.options.ScalaPbOptions.AuxEnumOptions *): ScalaPbOptions = addAllAuxEnumOptions(__vs) def addAllAuxEnumOptions(__vs: Iterable[scalapb.options.ScalaPbOptions.AuxEnumOptions]): ScalaPbOptions = copy(auxEnumOptions = auxEnumOptions ++ __vs) def withAuxEnumOptions(__v: _root_.scala.Seq[scalapb.options.ScalaPbOptions.AuxEnumOptions]): ScalaPbOptions = copy(auxEnumOptions = __v) - def clearAuxEnumValueOptions = copy(auxEnumValueOptions = _root_.scala.Seq.empty) + def clearAuxEnumValueOptions = copy(auxEnumValueOptions = _root_.scala.Vector.empty) def addAuxEnumValueOptions(__vs: scalapb.options.ScalaPbOptions.AuxEnumValueOptions *): ScalaPbOptions = addAllAuxEnumValueOptions(__vs) def addAllAuxEnumValueOptions(__vs: Iterable[scalapb.options.ScalaPbOptions.AuxEnumValueOptions]): ScalaPbOptions = copy(auxEnumValueOptions = auxEnumValueOptions ++ __vs) def withAuxEnumValueOptions(__v: _root_.scala.Seq[scalapb.options.ScalaPbOptions.AuxEnumValueOptions]): ScalaPbOptions = copy(auxEnumValueOptions = __v) - def clearPreprocessors = copy(preprocessors = _root_.scala.Seq.empty) + def clearPreprocessors = copy(preprocessors = _root_.scala.Vector.empty) def addPreprocessors(__vs: _root_.scala.Predef.String *): ScalaPbOptions = addAllPreprocessors(__vs) def addAllPreprocessors(__vs: Iterable[_root_.scala.Predef.String]): ScalaPbOptions = copy(preprocessors = preprocessors ++ __vs) def withPreprocessors(__v: _root_.scala.Seq[_root_.scala.Predef.String]): ScalaPbOptions = copy(preprocessors = __v) - def clearFieldTransformations = copy(fieldTransformations = _root_.scala.Seq.empty) + def clearFieldTransformations = copy(fieldTransformations = _root_.scala.Vector.empty) def addFieldTransformations(__vs: scalapb.options.FieldTransformation *): ScalaPbOptions = addAllFieldTransformations(__vs) def addAllFieldTransformations(__vs: Iterable[scalapb.options.FieldTransformation]): ScalaPbOptions = copy(fieldTransformations = fieldTransformations ++ __vs) def withFieldTransformations(__v: _root_.scala.Seq[scalapb.options.FieldTransformation]): ScalaPbOptions = copy(fieldTransformations = __v) @@ -768,8 +768,8 @@ object ScalaPbOptions extends scalapb.GeneratedMessageCompanion[scalapb.options. lazy val defaultInstance = scalapb.options.ScalaPbOptions( packageName = _root_.scala.None, flatPackage = _root_.scala.None, - `import` = _root_.scala.Seq.empty, - preamble = _root_.scala.Seq.empty, + `import` = _root_.scala.Vector.empty, + preamble = _root_.scala.Vector.empty, singleFile = _root_.scala.None, noPrimitiveWrappers = _root_.scala.None, primitiveWrappers = _root_.scala.None, @@ -785,12 +785,12 @@ object ScalaPbOptions extends scalapb.GeneratedMessageCompanion[scalapb.options. enumStripPrefix = _root_.scala.None, bytesType = _root_.scala.None, javaConversions = _root_.scala.None, - auxMessageOptions = _root_.scala.Seq.empty, - auxFieldOptions = _root_.scala.Seq.empty, - auxEnumOptions = _root_.scala.Seq.empty, - auxEnumValueOptions = _root_.scala.Seq.empty, - preprocessors = _root_.scala.Seq.empty, - fieldTransformations = _root_.scala.Seq.empty, + auxMessageOptions = _root_.scala.Vector.empty, + auxFieldOptions = _root_.scala.Vector.empty, + auxEnumOptions = _root_.scala.Vector.empty, + auxEnumValueOptions = _root_.scala.Vector.empty, + preprocessors = _root_.scala.Vector.empty, + fieldTransformations = _root_.scala.Vector.empty, ignoreAllTransformations = _root_.scala.None, getters = _root_.scala.None, scala3Sources = _root_.scala.None, diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/api/Api.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/api/Api.scala index 25a804577..b9c532102 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/api/Api.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/api/Api.scala @@ -52,11 +52,11 @@ import _root_.scalapb.internal.compat.JavaConverters._ @SerialVersionUID(0L) final case class Api( name: _root_.scala.Predef.String = "", - methods: _root_.scala.Seq[com.google.protobuf.api.Method] = _root_.scala.Seq.empty, - options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Seq.empty, + methods: _root_.scala.Seq[com.google.protobuf.api.Method] = _root_.scala.Vector.empty, + options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Vector.empty, version: _root_.scala.Predef.String = "", sourceContext: _root_.scala.Option[com.google.protobuf.source_context.SourceContext] = _root_.scala.None, - mixins: _root_.scala.Seq[com.google.protobuf.api.Mixin] = _root_.scala.Seq.empty, + mixins: _root_.scala.Seq[com.google.protobuf.api.Mixin] = _root_.scala.Vector.empty, syntax: com.google.protobuf.`type`.Syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[Api] { @@ -159,11 +159,11 @@ final case class Api( unknownFields.writeTo(_output__) } def withName(__v: _root_.scala.Predef.String): Api = copy(name = __v) - def clearMethods = copy(methods = _root_.scala.Seq.empty) + def clearMethods = copy(methods = _root_.scala.Vector.empty) def addMethods(__vs: com.google.protobuf.api.Method *): Api = addAllMethods(__vs) def addAllMethods(__vs: Iterable[com.google.protobuf.api.Method]): Api = copy(methods = methods ++ __vs) def withMethods(__v: _root_.scala.Seq[com.google.protobuf.api.Method]): Api = copy(methods = __v) - def clearOptions = copy(options = _root_.scala.Seq.empty) + def clearOptions = copy(options = _root_.scala.Vector.empty) def addOptions(__vs: com.google.protobuf.`type`.OptionProto *): Api = addAllOptions(__vs) def addAllOptions(__vs: Iterable[com.google.protobuf.`type`.OptionProto]): Api = copy(options = options ++ __vs) def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Api = copy(options = __v) @@ -171,7 +171,7 @@ final case class Api( def getSourceContext: com.google.protobuf.source_context.SourceContext = sourceContext.getOrElse(com.google.protobuf.source_context.SourceContext.defaultInstance) def clearSourceContext: Api = copy(sourceContext = _root_.scala.None) def withSourceContext(__v: com.google.protobuf.source_context.SourceContext): Api = copy(sourceContext = _root_.scala.Option(__v)) - def clearMixins = copy(mixins = _root_.scala.Seq.empty) + def clearMixins = copy(mixins = _root_.scala.Vector.empty) def addMixins(__vs: com.google.protobuf.api.Mixin *): Api = addAllMixins(__vs) def addAllMixins(__vs: Iterable[com.google.protobuf.api.Mixin]): Api = copy(mixins = mixins ++ __vs) def withMixins(__v: _root_.scala.Seq[com.google.protobuf.api.Mixin]): Api = copy(mixins = __v) @@ -317,11 +317,11 @@ object Api extends scalapb.GeneratedMessageCompanion[com.google.protobuf.api.Api } lazy val defaultInstance = com.google.protobuf.api.Api( name = "", - methods = _root_.scala.Seq.empty, - options = _root_.scala.Seq.empty, + methods = _root_.scala.Vector.empty, + options = _root_.scala.Vector.empty, version = "", sourceContext = _root_.scala.None, - mixins = _root_.scala.Seq.empty, + mixins = _root_.scala.Vector.empty, syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2 ) implicit class ApiLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.api.Api]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.api.Api](_l) { diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/api/Method.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/api/Method.scala index 9ca814c84..e47f56c6e 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/api/Method.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/api/Method.scala @@ -28,7 +28,7 @@ final case class Method( requestStreaming: _root_.scala.Boolean = false, responseTypeUrl: _root_.scala.Predef.String = "", responseStreaming: _root_.scala.Boolean = false, - options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Seq.empty, + options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Vector.empty, syntax: com.google.protobuf.`type`.Syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[Method] { @@ -144,7 +144,7 @@ final case class Method( def withRequestStreaming(__v: _root_.scala.Boolean): Method = copy(requestStreaming = __v) def withResponseTypeUrl(__v: _root_.scala.Predef.String): Method = copy(responseTypeUrl = __v) def withResponseStreaming(__v: _root_.scala.Boolean): Method = copy(responseStreaming = __v) - def clearOptions = copy(options = _root_.scala.Seq.empty) + def clearOptions = copy(options = _root_.scala.Vector.empty) def addOptions(__vs: com.google.protobuf.`type`.OptionProto *): Method = addAllOptions(__vs) def addAllOptions(__vs: Iterable[com.google.protobuf.`type`.OptionProto]): Method = copy(options = options ++ __vs) def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Method = copy(options = __v) @@ -300,7 +300,7 @@ object Method extends scalapb.GeneratedMessageCompanion[com.google.protobuf.api. requestStreaming = false, responseTypeUrl = "", responseStreaming = false, - options = _root_.scala.Seq.empty, + options = _root_.scala.Vector.empty, syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2 ) implicit class MethodLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.api.Method]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.api.Method](_l) { diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/compiler/plugin/CodeGeneratorRequest.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/compiler/plugin/CodeGeneratorRequest.scala index 53187ece2..ee204ec55 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/compiler/plugin/CodeGeneratorRequest.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/compiler/plugin/CodeGeneratorRequest.scala @@ -41,10 +41,10 @@ import _root_.scalapb.internal.compat.JavaConverters._ */ @SerialVersionUID(0L) final case class CodeGeneratorRequest( - fileToGenerate: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + fileToGenerate: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, parameter: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - protoFile: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto] = _root_.scala.Seq.empty, - sourceFileDescriptors: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto] = _root_.scala.Seq.empty, + protoFile: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto] = _root_.scala.Vector.empty, + sourceFileDescriptors: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto] = _root_.scala.Vector.empty, compilerVersion: _root_.scala.Option[com.google.protobuf.compiler.plugin.Version] = _root_.scala.None, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[CodeGeneratorRequest] { @@ -113,18 +113,18 @@ final case class CodeGeneratorRequest( }; unknownFields.writeTo(_output__) } - def clearFileToGenerate = copy(fileToGenerate = _root_.scala.Seq.empty) + def clearFileToGenerate = copy(fileToGenerate = _root_.scala.Vector.empty) def addFileToGenerate(__vs: _root_.scala.Predef.String *): CodeGeneratorRequest = addAllFileToGenerate(__vs) def addAllFileToGenerate(__vs: Iterable[_root_.scala.Predef.String]): CodeGeneratorRequest = copy(fileToGenerate = fileToGenerate ++ __vs) def withFileToGenerate(__v: _root_.scala.Seq[_root_.scala.Predef.String]): CodeGeneratorRequest = copy(fileToGenerate = __v) def getParameter: _root_.scala.Predef.String = parameter.getOrElse("") def clearParameter: CodeGeneratorRequest = copy(parameter = _root_.scala.None) def withParameter(__v: _root_.scala.Predef.String): CodeGeneratorRequest = copy(parameter = _root_.scala.Option(__v)) - def clearProtoFile = copy(protoFile = _root_.scala.Seq.empty) + def clearProtoFile = copy(protoFile = _root_.scala.Vector.empty) def addProtoFile(__vs: com.google.protobuf.descriptor.FileDescriptorProto *): CodeGeneratorRequest = addAllProtoFile(__vs) def addAllProtoFile(__vs: Iterable[com.google.protobuf.descriptor.FileDescriptorProto]): CodeGeneratorRequest = copy(protoFile = protoFile ++ __vs) def withProtoFile(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto]): CodeGeneratorRequest = copy(protoFile = __v) - def clearSourceFileDescriptors = copy(sourceFileDescriptors = _root_.scala.Seq.empty) + def clearSourceFileDescriptors = copy(sourceFileDescriptors = _root_.scala.Vector.empty) def addSourceFileDescriptors(__vs: com.google.protobuf.descriptor.FileDescriptorProto *): CodeGeneratorRequest = addAllSourceFileDescriptors(__vs) def addAllSourceFileDescriptors(__vs: Iterable[com.google.protobuf.descriptor.FileDescriptorProto]): CodeGeneratorRequest = copy(sourceFileDescriptors = sourceFileDescriptors ++ __vs) def withSourceFileDescriptors(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto]): CodeGeneratorRequest = copy(sourceFileDescriptors = __v) @@ -239,10 +239,10 @@ object CodeGeneratorRequest extends scalapb.GeneratedMessageCompanion[com.google lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.compiler.plugin.CodeGeneratorRequest( - fileToGenerate = _root_.scala.Seq.empty, + fileToGenerate = _root_.scala.Vector.empty, parameter = _root_.scala.None, - protoFile = _root_.scala.Seq.empty, - sourceFileDescriptors = _root_.scala.Seq.empty, + protoFile = _root_.scala.Vector.empty, + sourceFileDescriptors = _root_.scala.Vector.empty, compilerVersion = _root_.scala.None ) implicit class CodeGeneratorRequestLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.compiler.plugin.CodeGeneratorRequest]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.compiler.plugin.CodeGeneratorRequest](_l) { diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/compiler/plugin/CodeGeneratorResponse.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/compiler/plugin/CodeGeneratorResponse.scala index 2b7d21af6..d64b2e12c 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/compiler/plugin/CodeGeneratorResponse.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/compiler/plugin/CodeGeneratorResponse.scala @@ -35,7 +35,7 @@ final case class CodeGeneratorResponse( supportedFeatures: _root_.scala.Option[_root_.scala.Long] = _root_.scala.None, minimumEdition: _root_.scala.Option[_root_.scala.Int] = _root_.scala.None, maximumEdition: _root_.scala.Option[_root_.scala.Int] = _root_.scala.None, - file: _root_.scala.Seq[com.google.protobuf.compiler.plugin.CodeGeneratorResponse.File] = _root_.scala.Seq.empty, + file: _root_.scala.Seq[com.google.protobuf.compiler.plugin.CodeGeneratorResponse.File] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[CodeGeneratorResponse] { @transient @@ -111,7 +111,7 @@ final case class CodeGeneratorResponse( def getMaximumEdition: _root_.scala.Int = maximumEdition.getOrElse(0) def clearMaximumEdition: CodeGeneratorResponse = copy(maximumEdition = _root_.scala.None) def withMaximumEdition(__v: _root_.scala.Int): CodeGeneratorResponse = copy(maximumEdition = _root_.scala.Option(__v)) - def clearFile = copy(file = _root_.scala.Seq.empty) + def clearFile = copy(file = _root_.scala.Vector.empty) def addFile(__vs: com.google.protobuf.compiler.plugin.CodeGeneratorResponse.File *): CodeGeneratorResponse = addAllFile(__vs) def addAllFile(__vs: Iterable[com.google.protobuf.compiler.plugin.CodeGeneratorResponse.File]): CodeGeneratorResponse = copy(file = file ++ __vs) def withFile(__v: _root_.scala.Seq[com.google.protobuf.compiler.plugin.CodeGeneratorResponse.File]): CodeGeneratorResponse = copy(file = __v) @@ -228,7 +228,7 @@ object CodeGeneratorResponse extends scalapb.GeneratedMessageCompanion[com.googl supportedFeatures = _root_.scala.None, minimumEdition = _root_.scala.None, maximumEdition = _root_.scala.None, - file = _root_.scala.Seq.empty + file = _root_.scala.Vector.empty ) /** Sync with code_generator.h. */ diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/DescriptorProto.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/DescriptorProto.scala index a28126758..a2c89e3c4 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/DescriptorProto.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/DescriptorProto.scala @@ -13,15 +13,15 @@ import _root_.scalapb.internal.compat.JavaConverters._ @SerialVersionUID(0L) final case class DescriptorProto( name: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - field: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto] = _root_.scala.Seq.empty, - extension: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto] = _root_.scala.Seq.empty, - nestedType: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto] = _root_.scala.Seq.empty, - enumType: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto] = _root_.scala.Seq.empty, - extensionRange: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto.ExtensionRange] = _root_.scala.Seq.empty, - oneofDecl: _root_.scala.Seq[com.google.protobuf.descriptor.OneofDescriptorProto] = _root_.scala.Seq.empty, + field: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto] = _root_.scala.Vector.empty, + extension: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto] = _root_.scala.Vector.empty, + nestedType: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto] = _root_.scala.Vector.empty, + enumType: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto] = _root_.scala.Vector.empty, + extensionRange: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto.ExtensionRange] = _root_.scala.Vector.empty, + oneofDecl: _root_.scala.Seq[com.google.protobuf.descriptor.OneofDescriptorProto] = _root_.scala.Vector.empty, options: _root_.scala.Option[com.google.protobuf.descriptor.MessageOptions] = _root_.scala.None, - reservedRange: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto.ReservedRange] = _root_.scala.Seq.empty, - reservedName: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + reservedRange: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto.ReservedRange] = _root_.scala.Vector.empty, + reservedName: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[DescriptorProto] { @transient @@ -142,38 +142,38 @@ final case class DescriptorProto( def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: DescriptorProto = copy(name = _root_.scala.None) def withName(__v: _root_.scala.Predef.String): DescriptorProto = copy(name = _root_.scala.Option(__v)) - def clearField = copy(field = _root_.scala.Seq.empty) + def clearField = copy(field = _root_.scala.Vector.empty) def addField(__vs: com.google.protobuf.descriptor.FieldDescriptorProto *): DescriptorProto = addAllField(__vs) def addAllField(__vs: Iterable[com.google.protobuf.descriptor.FieldDescriptorProto]): DescriptorProto = copy(field = field ++ __vs) def withField(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto]): DescriptorProto = copy(field = __v) - def clearExtension = copy(extension = _root_.scala.Seq.empty) + def clearExtension = copy(extension = _root_.scala.Vector.empty) def addExtension(__vs: com.google.protobuf.descriptor.FieldDescriptorProto *): DescriptorProto = addAllExtension(__vs) def addAllExtension(__vs: Iterable[com.google.protobuf.descriptor.FieldDescriptorProto]): DescriptorProto = copy(extension = extension ++ __vs) def withExtension(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto]): DescriptorProto = copy(extension = __v) - def clearNestedType = copy(nestedType = _root_.scala.Seq.empty) + def clearNestedType = copy(nestedType = _root_.scala.Vector.empty) def addNestedType(__vs: com.google.protobuf.descriptor.DescriptorProto *): DescriptorProto = addAllNestedType(__vs) def addAllNestedType(__vs: Iterable[com.google.protobuf.descriptor.DescriptorProto]): DescriptorProto = copy(nestedType = nestedType ++ __vs) def withNestedType(__v: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto]): DescriptorProto = copy(nestedType = __v) - def clearEnumType = copy(enumType = _root_.scala.Seq.empty) + def clearEnumType = copy(enumType = _root_.scala.Vector.empty) def addEnumType(__vs: com.google.protobuf.descriptor.EnumDescriptorProto *): DescriptorProto = addAllEnumType(__vs) def addAllEnumType(__vs: Iterable[com.google.protobuf.descriptor.EnumDescriptorProto]): DescriptorProto = copy(enumType = enumType ++ __vs) def withEnumType(__v: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto]): DescriptorProto = copy(enumType = __v) - def clearExtensionRange = copy(extensionRange = _root_.scala.Seq.empty) + def clearExtensionRange = copy(extensionRange = _root_.scala.Vector.empty) def addExtensionRange(__vs: com.google.protobuf.descriptor.DescriptorProto.ExtensionRange *): DescriptorProto = addAllExtensionRange(__vs) def addAllExtensionRange(__vs: Iterable[com.google.protobuf.descriptor.DescriptorProto.ExtensionRange]): DescriptorProto = copy(extensionRange = extensionRange ++ __vs) def withExtensionRange(__v: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto.ExtensionRange]): DescriptorProto = copy(extensionRange = __v) - def clearOneofDecl = copy(oneofDecl = _root_.scala.Seq.empty) + def clearOneofDecl = copy(oneofDecl = _root_.scala.Vector.empty) def addOneofDecl(__vs: com.google.protobuf.descriptor.OneofDescriptorProto *): DescriptorProto = addAllOneofDecl(__vs) def addAllOneofDecl(__vs: Iterable[com.google.protobuf.descriptor.OneofDescriptorProto]): DescriptorProto = copy(oneofDecl = oneofDecl ++ __vs) def withOneofDecl(__v: _root_.scala.Seq[com.google.protobuf.descriptor.OneofDescriptorProto]): DescriptorProto = copy(oneofDecl = __v) def getOptions: com.google.protobuf.descriptor.MessageOptions = options.getOrElse(com.google.protobuf.descriptor.MessageOptions.defaultInstance) def clearOptions: DescriptorProto = copy(options = _root_.scala.None) def withOptions(__v: com.google.protobuf.descriptor.MessageOptions): DescriptorProto = copy(options = _root_.scala.Option(__v)) - def clearReservedRange = copy(reservedRange = _root_.scala.Seq.empty) + def clearReservedRange = copy(reservedRange = _root_.scala.Vector.empty) def addReservedRange(__vs: com.google.protobuf.descriptor.DescriptorProto.ReservedRange *): DescriptorProto = addAllReservedRange(__vs) def addAllReservedRange(__vs: Iterable[com.google.protobuf.descriptor.DescriptorProto.ReservedRange]): DescriptorProto = copy(reservedRange = reservedRange ++ __vs) def withReservedRange(__v: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto.ReservedRange]): DescriptorProto = copy(reservedRange = __v) - def clearReservedName = copy(reservedName = _root_.scala.Seq.empty) + def clearReservedName = copy(reservedName = _root_.scala.Vector.empty) def addReservedName(__vs: _root_.scala.Predef.String *): DescriptorProto = addAllReservedName(__vs) def addAllReservedName(__vs: Iterable[_root_.scala.Predef.String]): DescriptorProto = copy(reservedName = reservedName ++ __vs) def withReservedName(__v: _root_.scala.Seq[_root_.scala.Predef.String]): DescriptorProto = copy(reservedName = __v) @@ -340,15 +340,15 @@ object DescriptorProto extends scalapb.GeneratedMessageCompanion[com.google.prot def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.DescriptorProto( name = _root_.scala.None, - field = _root_.scala.Seq.empty, - extension = _root_.scala.Seq.empty, - nestedType = _root_.scala.Seq.empty, - enumType = _root_.scala.Seq.empty, - extensionRange = _root_.scala.Seq.empty, - oneofDecl = _root_.scala.Seq.empty, + field = _root_.scala.Vector.empty, + extension = _root_.scala.Vector.empty, + nestedType = _root_.scala.Vector.empty, + enumType = _root_.scala.Vector.empty, + extensionRange = _root_.scala.Vector.empty, + oneofDecl = _root_.scala.Vector.empty, options = _root_.scala.None, - reservedRange = _root_.scala.Seq.empty, - reservedName = _root_.scala.Seq.empty + reservedRange = _root_.scala.Vector.empty, + reservedName = _root_.scala.Vector.empty ) /** @param start * Inclusive. diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumDescriptorProto.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumDescriptorProto.scala index b75da041d..38eced43e 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumDescriptorProto.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumDescriptorProto.scala @@ -17,10 +17,10 @@ import _root_.scalapb.internal.compat.JavaConverters._ @SerialVersionUID(0L) final case class EnumDescriptorProto( name: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - value: _root_.scala.Seq[com.google.protobuf.descriptor.EnumValueDescriptorProto] = _root_.scala.Seq.empty, + value: _root_.scala.Seq[com.google.protobuf.descriptor.EnumValueDescriptorProto] = _root_.scala.Vector.empty, options: _root_.scala.Option[com.google.protobuf.descriptor.EnumOptions] = _root_.scala.None, - reservedRange: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto.EnumReservedRange] = _root_.scala.Seq.empty, - reservedName: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + reservedRange: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto.EnumReservedRange] = _root_.scala.Vector.empty, + reservedName: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[EnumDescriptorProto] { @transient @@ -91,18 +91,18 @@ final case class EnumDescriptorProto( def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: EnumDescriptorProto = copy(name = _root_.scala.None) def withName(__v: _root_.scala.Predef.String): EnumDescriptorProto = copy(name = _root_.scala.Option(__v)) - def clearValue = copy(value = _root_.scala.Seq.empty) + def clearValue = copy(value = _root_.scala.Vector.empty) def addValue(__vs: com.google.protobuf.descriptor.EnumValueDescriptorProto *): EnumDescriptorProto = addAllValue(__vs) def addAllValue(__vs: Iterable[com.google.protobuf.descriptor.EnumValueDescriptorProto]): EnumDescriptorProto = copy(value = value ++ __vs) def withValue(__v: _root_.scala.Seq[com.google.protobuf.descriptor.EnumValueDescriptorProto]): EnumDescriptorProto = copy(value = __v) def getOptions: com.google.protobuf.descriptor.EnumOptions = options.getOrElse(com.google.protobuf.descriptor.EnumOptions.defaultInstance) def clearOptions: EnumDescriptorProto = copy(options = _root_.scala.None) def withOptions(__v: com.google.protobuf.descriptor.EnumOptions): EnumDescriptorProto = copy(options = _root_.scala.Option(__v)) - def clearReservedRange = copy(reservedRange = _root_.scala.Seq.empty) + def clearReservedRange = copy(reservedRange = _root_.scala.Vector.empty) def addReservedRange(__vs: com.google.protobuf.descriptor.EnumDescriptorProto.EnumReservedRange *): EnumDescriptorProto = addAllReservedRange(__vs) def addAllReservedRange(__vs: Iterable[com.google.protobuf.descriptor.EnumDescriptorProto.EnumReservedRange]): EnumDescriptorProto = copy(reservedRange = reservedRange ++ __vs) def withReservedRange(__v: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto.EnumReservedRange]): EnumDescriptorProto = copy(reservedRange = __v) - def clearReservedName = copy(reservedName = _root_.scala.Seq.empty) + def clearReservedName = copy(reservedName = _root_.scala.Vector.empty) def addReservedName(__vs: _root_.scala.Predef.String *): EnumDescriptorProto = addAllReservedName(__vs) def addAllReservedName(__vs: Iterable[_root_.scala.Predef.String]): EnumDescriptorProto = copy(reservedName = reservedName ++ __vs) def withReservedName(__v: _root_.scala.Seq[_root_.scala.Predef.String]): EnumDescriptorProto = copy(reservedName = __v) @@ -218,10 +218,10 @@ object EnumDescriptorProto extends scalapb.GeneratedMessageCompanion[com.google. def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.EnumDescriptorProto( name = _root_.scala.None, - value = _root_.scala.Seq.empty, + value = _root_.scala.Vector.empty, options = _root_.scala.None, - reservedRange = _root_.scala.Seq.empty, - reservedName = _root_.scala.Seq.empty + reservedRange = _root_.scala.Vector.empty, + reservedName = _root_.scala.Vector.empty ) /** Range of reserved numeric values. Reserved values may not be used by * entries in the same enum. Reserved ranges may not overlap. diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumOptions.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumOptions.scala index f2c6fb84b..aebe17685 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumOptions.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumOptions.scala @@ -30,7 +30,7 @@ final case class EnumOptions( deprecated: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, @scala.deprecated(message="Marked as deprecated in proto file", "") deprecatedLegacyJsonFieldConflicts: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[EnumOptions] with _root_.scalapb.ExtendableMessage[EnumOptions] { @transient @@ -108,7 +108,7 @@ final case class EnumOptions( def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: EnumOptions = copy(features = _root_.scala.None) def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): EnumOptions = copy(features = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): EnumOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): EnumOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): EnumOptions = copy(uninterpretedOption = __v) @@ -223,7 +223,7 @@ object EnumOptions extends scalapb.GeneratedMessageCompanion[com.google.protobuf deprecated = _root_.scala.None, deprecatedLegacyJsonFieldConflicts = _root_.scala.None, features = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) implicit class EnumOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.EnumOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.EnumOptions](_l) { def allowAlias: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.getAllowAlias)((c_, f_) => c_.copy(allowAlias = _root_.scala.Option(f_))) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumValueOptions.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumValueOptions.scala index 4d7e44212..ec3895c37 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumValueOptions.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumValueOptions.scala @@ -26,7 +26,7 @@ final case class EnumValueOptions( features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, debugRedact: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, featureSupport: _root_.scala.Option[com.google.protobuf.descriptor.FieldOptions.FeatureSupport] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[EnumValueOptions] with _root_.scalapb.ExtendableMessage[EnumValueOptions] { @transient @@ -106,7 +106,7 @@ final case class EnumValueOptions( def getFeatureSupport: com.google.protobuf.descriptor.FieldOptions.FeatureSupport = featureSupport.getOrElse(com.google.protobuf.descriptor.FieldOptions.FeatureSupport.defaultInstance) def clearFeatureSupport: EnumValueOptions = copy(featureSupport = _root_.scala.None) def withFeatureSupport(__v: com.google.protobuf.descriptor.FieldOptions.FeatureSupport): EnumValueOptions = copy(featureSupport = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): EnumValueOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): EnumValueOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): EnumValueOptions = copy(uninterpretedOption = __v) @@ -222,7 +222,7 @@ object EnumValueOptions extends scalapb.GeneratedMessageCompanion[com.google.pro features = _root_.scala.None, debugRedact = _root_.scala.None, featureSupport = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) implicit class EnumValueOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.EnumValueOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.EnumValueOptions](_l) { def deprecated: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.getDeprecated)((c_, f_) => c_.copy(deprecated = _root_.scala.Option(f_))) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/ExtensionRangeOptions.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/ExtensionRangeOptions.scala index 81a9e2986..794187a5d 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/ExtensionRangeOptions.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/ExtensionRangeOptions.scala @@ -19,8 +19,8 @@ import _root_.scalapb.internal.compat.JavaConverters._ */ @SerialVersionUID(0L) final case class ExtensionRangeOptions( - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, - declaration: _root_.scala.Seq[com.google.protobuf.descriptor.ExtensionRangeOptions.Declaration] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, + declaration: _root_.scala.Seq[com.google.protobuf.descriptor.ExtensionRangeOptions.Declaration] = _root_.scala.Vector.empty, features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, verification: _root_.scala.Option[com.google.protobuf.descriptor.ExtensionRangeOptions.VerificationState] = _root_.scala.None, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty @@ -82,11 +82,11 @@ final case class ExtensionRangeOptions( }; unknownFields.writeTo(_output__) } - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): ExtensionRangeOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): ExtensionRangeOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): ExtensionRangeOptions = copy(uninterpretedOption = __v) - def clearDeclaration = copy(declaration = _root_.scala.Seq.empty) + def clearDeclaration = copy(declaration = _root_.scala.Vector.empty) def addDeclaration(__vs: com.google.protobuf.descriptor.ExtensionRangeOptions.Declaration *): ExtensionRangeOptions = addAllDeclaration(__vs) def addAllDeclaration(__vs: Iterable[com.google.protobuf.descriptor.ExtensionRangeOptions.Declaration]): ExtensionRangeOptions = copy(declaration = declaration ++ __vs) def withDeclaration(__v: _root_.scala.Seq[com.google.protobuf.descriptor.ExtensionRangeOptions.Declaration]): ExtensionRangeOptions = copy(declaration = __v) @@ -202,8 +202,8 @@ object ExtensionRangeOptions extends scalapb.GeneratedMessageCompanion[com.googl } } lazy val defaultInstance = com.google.protobuf.descriptor.ExtensionRangeOptions( - uninterpretedOption = _root_.scala.Seq.empty, - declaration = _root_.scala.Seq.empty, + uninterpretedOption = _root_.scala.Vector.empty, + declaration = _root_.scala.Vector.empty, features = _root_.scala.None, verification = _root_.scala.None ) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FeatureSetDefaults.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FeatureSetDefaults.scala index 104f0fd5a..2e5138f57 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FeatureSetDefaults.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FeatureSetDefaults.scala @@ -18,7 +18,7 @@ import _root_.scalapb.internal.compat.JavaConverters._ */ @SerialVersionUID(0L) final case class FeatureSetDefaults( - defaults: _root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault] = _root_.scala.Seq.empty, + defaults: _root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault] = _root_.scala.Vector.empty, minimumEdition: _root_.scala.Option[com.google.protobuf.descriptor.Edition] = _root_.scala.None, maximumEdition: _root_.scala.Option[com.google.protobuf.descriptor.Edition] = _root_.scala.None, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty @@ -68,7 +68,7 @@ final case class FeatureSetDefaults( }; unknownFields.writeTo(_output__) } - def clearDefaults = copy(defaults = _root_.scala.Seq.empty) + def clearDefaults = copy(defaults = _root_.scala.Vector.empty) def addDefaults(__vs: com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault *): FeatureSetDefaults = addAllDefaults(__vs) def addAllDefaults(__vs: Iterable[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault]): FeatureSetDefaults = copy(defaults = defaults ++ __vs) def withDefaults(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault]): FeatureSetDefaults = copy(defaults = __v) @@ -174,7 +174,7 @@ object FeatureSetDefaults extends scalapb.GeneratedMessageCompanion[com.google.p } } lazy val defaultInstance = com.google.protobuf.descriptor.FeatureSetDefaults( - defaults = _root_.scala.Seq.empty, + defaults = _root_.scala.Vector.empty, minimumEdition = _root_.scala.None, maximumEdition = _root_.scala.None ) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FieldOptions.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FieldOptions.scala index 933689915..81f89fab5 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FieldOptions.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FieldOptions.scala @@ -85,11 +85,11 @@ final case class FieldOptions( weak: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, debugRedact: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, retention: _root_.scala.Option[com.google.protobuf.descriptor.FieldOptions.OptionRetention] = _root_.scala.None, - targets: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.OptionTargetType] = _root_.scala.Seq.empty, - editionDefaults: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.EditionDefault] = _root_.scala.Seq.empty, + targets: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.OptionTargetType] = _root_.scala.Vector.empty, + editionDefaults: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.EditionDefault] = _root_.scala.Vector.empty, features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, featureSupport: _root_.scala.Option[com.google.protobuf.descriptor.FieldOptions.FeatureSupport] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[FieldOptions] with _root_.scalapb.ExtendableMessage[FieldOptions] { @transient @@ -258,11 +258,11 @@ final case class FieldOptions( def getRetention: com.google.protobuf.descriptor.FieldOptions.OptionRetention = retention.getOrElse(com.google.protobuf.descriptor.FieldOptions.OptionRetention.RETENTION_UNKNOWN) def clearRetention: FieldOptions = copy(retention = _root_.scala.None) def withRetention(__v: com.google.protobuf.descriptor.FieldOptions.OptionRetention): FieldOptions = copy(retention = _root_.scala.Option(__v)) - def clearTargets = copy(targets = _root_.scala.Seq.empty) + def clearTargets = copy(targets = _root_.scala.Vector.empty) def addTargets(__vs: com.google.protobuf.descriptor.FieldOptions.OptionTargetType *): FieldOptions = addAllTargets(__vs) def addAllTargets(__vs: Iterable[com.google.protobuf.descriptor.FieldOptions.OptionTargetType]): FieldOptions = copy(targets = targets ++ __vs) def withTargets(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.OptionTargetType]): FieldOptions = copy(targets = __v) - def clearEditionDefaults = copy(editionDefaults = _root_.scala.Seq.empty) + def clearEditionDefaults = copy(editionDefaults = _root_.scala.Vector.empty) def addEditionDefaults(__vs: com.google.protobuf.descriptor.FieldOptions.EditionDefault *): FieldOptions = addAllEditionDefaults(__vs) def addAllEditionDefaults(__vs: Iterable[com.google.protobuf.descriptor.FieldOptions.EditionDefault]): FieldOptions = copy(editionDefaults = editionDefaults ++ __vs) def withEditionDefaults(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.EditionDefault]): FieldOptions = copy(editionDefaults = __v) @@ -272,7 +272,7 @@ final case class FieldOptions( def getFeatureSupport: com.google.protobuf.descriptor.FieldOptions.FeatureSupport = featureSupport.getOrElse(com.google.protobuf.descriptor.FieldOptions.FeatureSupport.defaultInstance) def clearFeatureSupport: FieldOptions = copy(featureSupport = _root_.scala.None) def withFeatureSupport(__v: com.google.protobuf.descriptor.FieldOptions.FeatureSupport): FieldOptions = copy(featureSupport = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): FieldOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): FieldOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): FieldOptions = copy(uninterpretedOption = __v) @@ -494,11 +494,11 @@ object FieldOptions extends scalapb.GeneratedMessageCompanion[com.google.protobu weak = _root_.scala.None, debugRedact = _root_.scala.None, retention = _root_.scala.None, - targets = _root_.scala.Seq.empty, - editionDefaults = _root_.scala.Seq.empty, + targets = _root_.scala.Vector.empty, + editionDefaults = _root_.scala.Vector.empty, features = _root_.scala.None, featureSupport = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) sealed abstract class CType(val value: _root_.scala.Int) extends _root_.scalapb.GeneratedEnum { type EnumType = com.google.protobuf.descriptor.FieldOptions.CType diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FileDescriptorProto.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FileDescriptorProto.scala index e2394d06f..a2fbfa560 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FileDescriptorProto.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FileDescriptorProto.scala @@ -36,13 +36,13 @@ import _root_.scalapb.internal.compat.JavaConverters._ final case class FileDescriptorProto( name: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, `package`: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - dependency: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - publicDependency: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Seq.empty, - weakDependency: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Seq.empty, - messageType: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto] = _root_.scala.Seq.empty, - enumType: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto] = _root_.scala.Seq.empty, - service: _root_.scala.Seq[com.google.protobuf.descriptor.ServiceDescriptorProto] = _root_.scala.Seq.empty, - extension: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto] = _root_.scala.Seq.empty, + dependency: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + publicDependency: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Vector.empty, + weakDependency: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Vector.empty, + messageType: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto] = _root_.scala.Vector.empty, + enumType: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto] = _root_.scala.Vector.empty, + service: _root_.scala.Seq[com.google.protobuf.descriptor.ServiceDescriptorProto] = _root_.scala.Vector.empty, + extension: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto] = _root_.scala.Vector.empty, options: _root_.scala.Option[com.google.protobuf.descriptor.FileOptions] = _root_.scala.None, sourceCodeInfo: _root_.scala.Option[com.google.protobuf.descriptor.SourceCodeInfo] = _root_.scala.None, syntax: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, @@ -190,31 +190,31 @@ final case class FileDescriptorProto( def getPackage: _root_.scala.Predef.String = `package`.getOrElse("") def clearPackage: FileDescriptorProto = copy(`package` = _root_.scala.None) def withPackage(__v: _root_.scala.Predef.String): FileDescriptorProto = copy(`package` = _root_.scala.Option(__v)) - def clearDependency = copy(dependency = _root_.scala.Seq.empty) + def clearDependency = copy(dependency = _root_.scala.Vector.empty) def addDependency(__vs: _root_.scala.Predef.String *): FileDescriptorProto = addAllDependency(__vs) def addAllDependency(__vs: Iterable[_root_.scala.Predef.String]): FileDescriptorProto = copy(dependency = dependency ++ __vs) def withDependency(__v: _root_.scala.Seq[_root_.scala.Predef.String]): FileDescriptorProto = copy(dependency = __v) - def clearPublicDependency = copy(publicDependency = _root_.scala.Seq.empty) + def clearPublicDependency = copy(publicDependency = _root_.scala.Vector.empty) def addPublicDependency(__vs: _root_.scala.Int *): FileDescriptorProto = addAllPublicDependency(__vs) def addAllPublicDependency(__vs: Iterable[_root_.scala.Int]): FileDescriptorProto = copy(publicDependency = publicDependency ++ __vs) def withPublicDependency(__v: _root_.scala.Seq[_root_.scala.Int]): FileDescriptorProto = copy(publicDependency = __v) - def clearWeakDependency = copy(weakDependency = _root_.scala.Seq.empty) + def clearWeakDependency = copy(weakDependency = _root_.scala.Vector.empty) def addWeakDependency(__vs: _root_.scala.Int *): FileDescriptorProto = addAllWeakDependency(__vs) def addAllWeakDependency(__vs: Iterable[_root_.scala.Int]): FileDescriptorProto = copy(weakDependency = weakDependency ++ __vs) def withWeakDependency(__v: _root_.scala.Seq[_root_.scala.Int]): FileDescriptorProto = copy(weakDependency = __v) - def clearMessageType = copy(messageType = _root_.scala.Seq.empty) + def clearMessageType = copy(messageType = _root_.scala.Vector.empty) def addMessageType(__vs: com.google.protobuf.descriptor.DescriptorProto *): FileDescriptorProto = addAllMessageType(__vs) def addAllMessageType(__vs: Iterable[com.google.protobuf.descriptor.DescriptorProto]): FileDescriptorProto = copy(messageType = messageType ++ __vs) def withMessageType(__v: _root_.scala.Seq[com.google.protobuf.descriptor.DescriptorProto]): FileDescriptorProto = copy(messageType = __v) - def clearEnumType = copy(enumType = _root_.scala.Seq.empty) + def clearEnumType = copy(enumType = _root_.scala.Vector.empty) def addEnumType(__vs: com.google.protobuf.descriptor.EnumDescriptorProto *): FileDescriptorProto = addAllEnumType(__vs) def addAllEnumType(__vs: Iterable[com.google.protobuf.descriptor.EnumDescriptorProto]): FileDescriptorProto = copy(enumType = enumType ++ __vs) def withEnumType(__v: _root_.scala.Seq[com.google.protobuf.descriptor.EnumDescriptorProto]): FileDescriptorProto = copy(enumType = __v) - def clearService = copy(service = _root_.scala.Seq.empty) + def clearService = copy(service = _root_.scala.Vector.empty) def addService(__vs: com.google.protobuf.descriptor.ServiceDescriptorProto *): FileDescriptorProto = addAllService(__vs) def addAllService(__vs: Iterable[com.google.protobuf.descriptor.ServiceDescriptorProto]): FileDescriptorProto = copy(service = service ++ __vs) def withService(__v: _root_.scala.Seq[com.google.protobuf.descriptor.ServiceDescriptorProto]): FileDescriptorProto = copy(service = __v) - def clearExtension = copy(extension = _root_.scala.Seq.empty) + def clearExtension = copy(extension = _root_.scala.Vector.empty) def addExtension(__vs: com.google.protobuf.descriptor.FieldDescriptorProto *): FileDescriptorProto = addAllExtension(__vs) def addAllExtension(__vs: Iterable[com.google.protobuf.descriptor.FieldDescriptorProto]): FileDescriptorProto = copy(extension = extension ++ __vs) def withExtension(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto]): FileDescriptorProto = copy(extension = __v) @@ -435,13 +435,13 @@ object FileDescriptorProto extends scalapb.GeneratedMessageCompanion[com.google. lazy val defaultInstance = com.google.protobuf.descriptor.FileDescriptorProto( name = _root_.scala.None, `package` = _root_.scala.None, - dependency = _root_.scala.Seq.empty, - publicDependency = _root_.scala.Seq.empty, - weakDependency = _root_.scala.Seq.empty, - messageType = _root_.scala.Seq.empty, - enumType = _root_.scala.Seq.empty, - service = _root_.scala.Seq.empty, - extension = _root_.scala.Seq.empty, + dependency = _root_.scala.Vector.empty, + publicDependency = _root_.scala.Vector.empty, + weakDependency = _root_.scala.Vector.empty, + messageType = _root_.scala.Vector.empty, + enumType = _root_.scala.Vector.empty, + service = _root_.scala.Vector.empty, + extension = _root_.scala.Vector.empty, options = _root_.scala.None, sourceCodeInfo = _root_.scala.None, syntax = _root_.scala.None, diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FileDescriptorSet.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FileDescriptorSet.scala index 572c8f6a8..74003bed0 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FileDescriptorSet.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FileDescriptorSet.scala @@ -9,7 +9,7 @@ import _root_.scalapb.internal.compat.JavaConverters._ */ @SerialVersionUID(0L) final case class FileDescriptorSet( - file: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto] = _root_.scala.Seq.empty, + file: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[FileDescriptorSet] { @transient @@ -41,7 +41,7 @@ final case class FileDescriptorSet( }; unknownFields.writeTo(_output__) } - def clearFile = copy(file = _root_.scala.Seq.empty) + def clearFile = copy(file = _root_.scala.Vector.empty) def addFile(__vs: com.google.protobuf.descriptor.FileDescriptorProto *): FileDescriptorSet = addAllFile(__vs) def addAllFile(__vs: Iterable[com.google.protobuf.descriptor.FileDescriptorProto]): FileDescriptorSet = copy(file = file ++ __vs) def withFile(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto]): FileDescriptorSet = copy(file = __v) @@ -115,7 +115,7 @@ object FileDescriptorSet extends scalapb.GeneratedMessageCompanion[com.google.pr lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.FileDescriptorSet( - file = _root_.scala.Seq.empty + file = _root_.scala.Vector.empty ) implicit class FileDescriptorSetLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.FileDescriptorSet]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.FileDescriptorSet](_l) { def file: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto]] = field(_.file)((c_, f_) => c_.copy(file = f_)) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FileOptions.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FileOptions.scala index c4dcf7796..d0ced0036 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FileOptions.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FileOptions.scala @@ -113,7 +113,7 @@ final case class FileOptions( phpMetadataNamespace: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, rubyPackage: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[FileOptions] with _root_.scalapb.ExtendableMessage[FileOptions] { @transient @@ -367,7 +367,7 @@ final case class FileOptions( def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: FileOptions = copy(features = _root_.scala.None) def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FileOptions = copy(features = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): FileOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): FileOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): FileOptions = copy(uninterpretedOption = __v) @@ -646,7 +646,7 @@ object FileOptions extends scalapb.GeneratedMessageCompanion[com.google.protobuf phpMetadataNamespace = _root_.scala.None, rubyPackage = _root_.scala.None, features = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) /** Generated classes can be optimized for speed or code size. */ diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/GeneratedCodeInfo.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/GeneratedCodeInfo.scala index 844d0a178..08b3607cf 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/GeneratedCodeInfo.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/GeneratedCodeInfo.scala @@ -14,7 +14,7 @@ import _root_.scalapb.internal.compat.JavaConverters._ */ @SerialVersionUID(0L) final case class GeneratedCodeInfo( - annotation: _root_.scala.Seq[com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation] = _root_.scala.Seq.empty, + annotation: _root_.scala.Seq[com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[GeneratedCodeInfo] { @transient @@ -46,7 +46,7 @@ final case class GeneratedCodeInfo( }; unknownFields.writeTo(_output__) } - def clearAnnotation = copy(annotation = _root_.scala.Seq.empty) + def clearAnnotation = copy(annotation = _root_.scala.Vector.empty) def addAnnotation(__vs: com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation *): GeneratedCodeInfo = addAllAnnotation(__vs) def addAllAnnotation(__vs: Iterable[com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation]): GeneratedCodeInfo = copy(annotation = annotation ++ __vs) def withAnnotation(__v: _root_.scala.Seq[com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation]): GeneratedCodeInfo = copy(annotation = __v) @@ -123,7 +123,7 @@ object GeneratedCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.pr ) def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.GeneratedCodeInfo( - annotation = _root_.scala.Seq.empty + annotation = _root_.scala.Vector.empty ) /** @param path * Identifies the element in the original source .proto file. This field @@ -140,7 +140,7 @@ object GeneratedCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.pr */ @SerialVersionUID(0L) final case class Annotation( - path: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Seq.empty, + path: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Vector.empty, sourceFile: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, begin: _root_.scala.Option[_root_.scala.Int] = _root_.scala.None, end: _root_.scala.Option[_root_.scala.Int] = _root_.scala.None, @@ -216,7 +216,7 @@ object GeneratedCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.pr }; unknownFields.writeTo(_output__) } - def clearPath = copy(path = _root_.scala.Seq.empty) + def clearPath = copy(path = _root_.scala.Vector.empty) def addPath(__vs: _root_.scala.Int *): Annotation = addAllPath(__vs) def addAllPath(__vs: Iterable[_root_.scala.Int]): Annotation = copy(path = path ++ __vs) def withPath(__v: _root_.scala.Seq[_root_.scala.Int]): Annotation = copy(path = __v) @@ -344,7 +344,7 @@ object GeneratedCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.pr } } lazy val defaultInstance = com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation( - path = _root_.scala.Seq.empty, + path = _root_.scala.Vector.empty, sourceFile = _root_.scala.None, begin = _root_.scala.None, end = _root_.scala.None, diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/MessageOptions.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/MessageOptions.scala index 11fc4556e..040e7afd5 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/MessageOptions.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/MessageOptions.scala @@ -78,7 +78,7 @@ final case class MessageOptions( mapEntry: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, @scala.deprecated(message="Marked as deprecated in proto file", "") deprecatedLegacyJsonFieldConflicts: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[MessageOptions] with _root_.scalapb.ExtendableMessage[MessageOptions] { @transient @@ -178,7 +178,7 @@ final case class MessageOptions( def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: MessageOptions = copy(features = _root_.scala.None) def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): MessageOptions = copy(features = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): MessageOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): MessageOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): MessageOptions = copy(uninterpretedOption = __v) @@ -313,7 +313,7 @@ object MessageOptions extends scalapb.GeneratedMessageCompanion[com.google.proto mapEntry = _root_.scala.None, deprecatedLegacyJsonFieldConflicts = _root_.scala.None, features = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) implicit class MessageOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.MessageOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.MessageOptions](_l) { def messageSetWireFormat: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Boolean] = field(_.getMessageSetWireFormat)((c_, f_) => c_.copy(messageSetWireFormat = _root_.scala.Option(f_))) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/MethodOptions.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/MethodOptions.scala index 4b28ca4fe..a92fe210a 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/MethodOptions.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/MethodOptions.scala @@ -19,7 +19,7 @@ final case class MethodOptions( deprecated: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, idempotencyLevel: _root_.scala.Option[com.google.protobuf.descriptor.MethodOptions.IdempotencyLevel] = _root_.scala.None, features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[MethodOptions] with _root_.scalapb.ExtendableMessage[MethodOptions] { @transient @@ -86,7 +86,7 @@ final case class MethodOptions( def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: MethodOptions = copy(features = _root_.scala.None) def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): MethodOptions = copy(features = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): MethodOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): MethodOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): MethodOptions = copy(uninterpretedOption = __v) @@ -195,7 +195,7 @@ object MethodOptions extends scalapb.GeneratedMessageCompanion[com.google.protob deprecated = _root_.scala.None, idempotencyLevel = _root_.scala.None, features = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) /** Is this method side-effect-free (or safe in HTTP parlance), or idempotent, * or neither? HTTP based RPC implementation may choose GET verb for safe diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/OneofOptions.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/OneofOptions.scala index 7f0962739..50a1a162d 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/OneofOptions.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/OneofOptions.scala @@ -12,7 +12,7 @@ import _root_.scalapb.internal.compat.JavaConverters._ @SerialVersionUID(0L) final case class OneofOptions( features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[OneofOptions] with _root_.scalapb.ExtendableMessage[OneofOptions] { @transient @@ -57,7 +57,7 @@ final case class OneofOptions( def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: OneofOptions = copy(features = _root_.scala.None) def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): OneofOptions = copy(features = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): OneofOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): OneofOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): OneofOptions = copy(uninterpretedOption = __v) @@ -142,7 +142,7 @@ object OneofOptions extends scalapb.GeneratedMessageCompanion[com.google.protobu def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.OneofOptions( features = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) implicit class OneofOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.OneofOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.OneofOptions](_l) { def features: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.FeatureSet] = field(_.getFeatures)((c_, f_) => c_.copy(features = _root_.scala.Option(f_))) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/ServiceDescriptorProto.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/ServiceDescriptorProto.scala index c53165f1e..1dbffc31c 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/ServiceDescriptorProto.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/ServiceDescriptorProto.scala @@ -9,7 +9,7 @@ import _root_.scalapb.internal.compat.JavaConverters._ @SerialVersionUID(0L) final case class ServiceDescriptorProto( name: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - method: _root_.scala.Seq[com.google.protobuf.descriptor.MethodDescriptorProto] = _root_.scala.Seq.empty, + method: _root_.scala.Seq[com.google.protobuf.descriptor.MethodDescriptorProto] = _root_.scala.Vector.empty, options: _root_.scala.Option[com.google.protobuf.descriptor.ServiceOptions] = _root_.scala.None, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ServiceDescriptorProto] { @@ -63,7 +63,7 @@ final case class ServiceDescriptorProto( def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: ServiceDescriptorProto = copy(name = _root_.scala.None) def withName(__v: _root_.scala.Predef.String): ServiceDescriptorProto = copy(name = _root_.scala.Option(__v)) - def clearMethod = copy(method = _root_.scala.Seq.empty) + def clearMethod = copy(method = _root_.scala.Vector.empty) def addMethod(__vs: com.google.protobuf.descriptor.MethodDescriptorProto *): ServiceDescriptorProto = addAllMethod(__vs) def addAllMethod(__vs: Iterable[com.google.protobuf.descriptor.MethodDescriptorProto]): ServiceDescriptorProto = copy(method = method ++ __vs) def withMethod(__v: _root_.scala.Seq[com.google.protobuf.descriptor.MethodDescriptorProto]): ServiceDescriptorProto = copy(method = __v) @@ -160,7 +160,7 @@ object ServiceDescriptorProto extends scalapb.GeneratedMessageCompanion[com.goog def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.ServiceDescriptorProto( name = _root_.scala.None, - method = _root_.scala.Seq.empty, + method = _root_.scala.Vector.empty, options = _root_.scala.None ) implicit class ServiceDescriptorProtoLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.ServiceDescriptorProto]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.ServiceDescriptorProto](_l) { diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/ServiceOptions.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/ServiceOptions.scala index e6b2504b6..0873c467f 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/ServiceOptions.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/ServiceOptions.scala @@ -18,7 +18,7 @@ import _root_.scalapb.internal.compat.JavaConverters._ final case class ServiceOptions( features: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None, deprecated: _root_.scala.Option[_root_.scala.Boolean] = _root_.scala.None, - uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Seq.empty, + uninterpretedOption: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ServiceOptions] with _root_.scalapb.ExtendableMessage[ServiceOptions] { @transient @@ -74,7 +74,7 @@ final case class ServiceOptions( def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: ServiceOptions = copy(deprecated = _root_.scala.None) def withDeprecated(__v: _root_.scala.Boolean): ServiceOptions = copy(deprecated = _root_.scala.Option(__v)) - def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.empty) + def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Vector.empty) def addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): ServiceOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): ServiceOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) def withUninterpretedOption(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption]): ServiceOptions = copy(uninterpretedOption = __v) @@ -169,7 +169,7 @@ object ServiceOptions extends scalapb.GeneratedMessageCompanion[com.google.proto lazy val defaultInstance = com.google.protobuf.descriptor.ServiceOptions( features = _root_.scala.None, deprecated = _root_.scala.None, - uninterpretedOption = _root_.scala.Seq.empty + uninterpretedOption = _root_.scala.Vector.empty ) implicit class ServiceOptionsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.ServiceOptions]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.ServiceOptions](_l) { def features: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.FeatureSet] = field(_.getFeatures)((c_, f_) => c_.copy(features = _root_.scala.Option(f_))) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/SourceCodeInfo.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/SourceCodeInfo.scala index fbea7c9f6..ef13c5156 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/SourceCodeInfo.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/SourceCodeInfo.scala @@ -54,7 +54,7 @@ import _root_.scalapb.internal.compat.JavaConverters._ */ @SerialVersionUID(0L) final case class SourceCodeInfo( - location: _root_.scala.Seq[com.google.protobuf.descriptor.SourceCodeInfo.Location] = _root_.scala.Seq.empty, + location: _root_.scala.Seq[com.google.protobuf.descriptor.SourceCodeInfo.Location] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[SourceCodeInfo] { @transient @@ -86,7 +86,7 @@ final case class SourceCodeInfo( }; unknownFields.writeTo(_output__) } - def clearLocation = copy(location = _root_.scala.Seq.empty) + def clearLocation = copy(location = _root_.scala.Vector.empty) def addLocation(__vs: com.google.protobuf.descriptor.SourceCodeInfo.Location *): SourceCodeInfo = addAllLocation(__vs) def addAllLocation(__vs: Iterable[com.google.protobuf.descriptor.SourceCodeInfo.Location]): SourceCodeInfo = copy(location = location ++ __vs) def withLocation(__v: _root_.scala.Seq[com.google.protobuf.descriptor.SourceCodeInfo.Location]): SourceCodeInfo = copy(location = __v) @@ -163,7 +163,7 @@ object SourceCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.proto ) def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.SourceCodeInfo( - location = _root_.scala.Seq.empty + location = _root_.scala.Vector.empty ) /** @param path * Identifies which part of the FileDescriptorProto was defined at this @@ -246,11 +246,11 @@ object SourceCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.proto */ @SerialVersionUID(0L) final case class Location( - path: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Seq.empty, - span: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Seq.empty, + path: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Vector.empty, + span: _root_.scala.Seq[_root_.scala.Int] = _root_.scala.Vector.empty, leadingComments: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, trailingComments: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, - leadingDetachedComments: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + leadingDetachedComments: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[Location] { private[this] def pathSerializedSize = { @@ -332,11 +332,11 @@ object SourceCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.proto }; unknownFields.writeTo(_output__) } - def clearPath = copy(path = _root_.scala.Seq.empty) + def clearPath = copy(path = _root_.scala.Vector.empty) def addPath(__vs: _root_.scala.Int *): Location = addAllPath(__vs) def addAllPath(__vs: Iterable[_root_.scala.Int]): Location = copy(path = path ++ __vs) def withPath(__v: _root_.scala.Seq[_root_.scala.Int]): Location = copy(path = __v) - def clearSpan = copy(span = _root_.scala.Seq.empty) + def clearSpan = copy(span = _root_.scala.Vector.empty) def addSpan(__vs: _root_.scala.Int *): Location = addAllSpan(__vs) def addAllSpan(__vs: Iterable[_root_.scala.Int]): Location = copy(span = span ++ __vs) def withSpan(__v: _root_.scala.Seq[_root_.scala.Int]): Location = copy(span = __v) @@ -346,7 +346,7 @@ object SourceCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.proto def getTrailingComments: _root_.scala.Predef.String = trailingComments.getOrElse("") def clearTrailingComments: Location = copy(trailingComments = _root_.scala.None) def withTrailingComments(__v: _root_.scala.Predef.String): Location = copy(trailingComments = _root_.scala.Option(__v)) - def clearLeadingDetachedComments = copy(leadingDetachedComments = _root_.scala.Seq.empty) + def clearLeadingDetachedComments = copy(leadingDetachedComments = _root_.scala.Vector.empty) def addLeadingDetachedComments(__vs: _root_.scala.Predef.String *): Location = addAllLeadingDetachedComments(__vs) def addAllLeadingDetachedComments(__vs: Iterable[_root_.scala.Predef.String]): Location = copy(leadingDetachedComments = leadingDetachedComments ++ __vs) def withLeadingDetachedComments(__v: _root_.scala.Seq[_root_.scala.Predef.String]): Location = copy(leadingDetachedComments = __v) @@ -466,11 +466,11 @@ object SourceCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.proto lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.SourceCodeInfo.Location( - path = _root_.scala.Seq.empty, - span = _root_.scala.Seq.empty, + path = _root_.scala.Vector.empty, + span = _root_.scala.Vector.empty, leadingComments = _root_.scala.None, trailingComments = _root_.scala.None, - leadingDetachedComments = _root_.scala.Seq.empty + leadingDetachedComments = _root_.scala.Vector.empty ) implicit class LocationLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.SourceCodeInfo.Location]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.SourceCodeInfo.Location](_l) { def path: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Int]] = field(_.path)((c_, f_) => c_.copy(path = f_)) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/UninterpretedOption.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/UninterpretedOption.scala index 34e1043c4..b16edf8fd 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/UninterpretedOption.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/UninterpretedOption.scala @@ -17,7 +17,7 @@ import _root_.scalapb.internal.compat.JavaConverters._ */ @SerialVersionUID(0L) final case class UninterpretedOption( - name: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption.NamePart] = _root_.scala.Seq.empty, + name: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption.NamePart] = _root_.scala.Vector.empty, identifierValue: _root_.scala.Option[_root_.scala.Predef.String] = _root_.scala.None, positiveIntValue: _root_.scala.Option[_root_.scala.Long] = _root_.scala.None, negativeIntValue: _root_.scala.Option[_root_.scala.Long] = _root_.scala.None, @@ -103,7 +103,7 @@ final case class UninterpretedOption( }; unknownFields.writeTo(_output__) } - def clearName = copy(name = _root_.scala.Seq.empty) + def clearName = copy(name = _root_.scala.Vector.empty) def addName(__vs: com.google.protobuf.descriptor.UninterpretedOption.NamePart *): UninterpretedOption = addAllName(__vs) def addAllName(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption.NamePart]): UninterpretedOption = copy(name = name ++ __vs) def withName(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption.NamePart]): UninterpretedOption = copy(name = __v) @@ -252,7 +252,7 @@ object UninterpretedOption extends scalapb.GeneratedMessageCompanion[com.google. ) def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.descriptor.UninterpretedOption( - name = _root_.scala.Seq.empty, + name = _root_.scala.Vector.empty, identifierValue = _root_.scala.None, positiveIntValue = _root_.scala.None, negativeIntValue = _root_.scala.None, diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/field_mask/FieldMask.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/field_mask/FieldMask.scala index ddfdab3fc..6ae7b2b48 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/field_mask/FieldMask.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/field_mask/FieldMask.scala @@ -209,7 +209,7 @@ import _root_.scalapb.internal.compat.JavaConverters._ */ @SerialVersionUID(0L) final case class FieldMask( - paths: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, + paths: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[FieldMask] { @transient @@ -239,7 +239,7 @@ final case class FieldMask( }; unknownFields.writeTo(_output__) } - def clearPaths = copy(paths = _root_.scala.Seq.empty) + def clearPaths = copy(paths = _root_.scala.Vector.empty) def addPaths(__vs: _root_.scala.Predef.String *): FieldMask = addAllPaths(__vs) def addAllPaths(__vs: Iterable[_root_.scala.Predef.String]): FieldMask = copy(paths = paths ++ __vs) def withPaths(__v: _root_.scala.Seq[_root_.scala.Predef.String]): FieldMask = copy(paths = __v) @@ -307,7 +307,7 @@ object FieldMask extends scalapb.GeneratedMessageCompanion[com.google.protobuf.f lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.field_mask.FieldMask( - paths = _root_.scala.Seq.empty + paths = _root_.scala.Vector.empty ) implicit class FieldMaskLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.field_mask.FieldMask]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.field_mask.FieldMask](_l) { def paths: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[_root_.scala.Predef.String]] = field(_.paths)((c_, f_) => c_.copy(paths = f_)) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/struct/ListValue.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/struct/ListValue.scala index 94fc60d16..02e41c0e2 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/struct/ListValue.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/struct/ListValue.scala @@ -13,7 +13,7 @@ import _root_.scalapb.internal.compat.JavaConverters._ */ @SerialVersionUID(0L) final case class ListValue( - values: _root_.scala.Seq[com.google.protobuf.struct.Value] = _root_.scala.Seq.empty, + values: _root_.scala.Seq[com.google.protobuf.struct.Value] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[ListValue] { @transient @@ -45,7 +45,7 @@ final case class ListValue( }; unknownFields.writeTo(_output__) } - def clearValues = copy(values = _root_.scala.Seq.empty) + def clearValues = copy(values = _root_.scala.Vector.empty) def addValues(__vs: com.google.protobuf.struct.Value *): ListValue = addAllValues(__vs) def addAllValues(__vs: Iterable[com.google.protobuf.struct.Value]): ListValue = copy(values = values ++ __vs) def withValues(__v: _root_.scala.Seq[com.google.protobuf.struct.Value]): ListValue = copy(values = __v) @@ -119,7 +119,7 @@ object ListValue extends scalapb.GeneratedMessageCompanion[com.google.protobuf.s lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = throw new MatchError(__fieldNumber) lazy val defaultInstance = com.google.protobuf.struct.ListValue( - values = _root_.scala.Seq.empty + values = _root_.scala.Vector.empty ) implicit class ListValueLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.struct.ListValue]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.struct.ListValue](_l) { def values: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[com.google.protobuf.struct.Value]] = field(_.values)((c_, f_) => c_.copy(values = f_)) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/Enum.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/Enum.scala index 42e164cc0..8cbc5a5fb 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/Enum.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/Enum.scala @@ -22,8 +22,8 @@ import _root_.scalapb.internal.compat.JavaConverters._ @SerialVersionUID(0L) final case class Enum( name: _root_.scala.Predef.String = "", - enumvalue: _root_.scala.Seq[com.google.protobuf.`type`.EnumValue] = _root_.scala.Seq.empty, - options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Seq.empty, + enumvalue: _root_.scala.Seq[com.google.protobuf.`type`.EnumValue] = _root_.scala.Vector.empty, + options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Vector.empty, sourceContext: _root_.scala.Option[com.google.protobuf.source_context.SourceContext] = _root_.scala.None, syntax: com.google.protobuf.`type`.Syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, edition: _root_.scala.Predef.String = "", @@ -118,11 +118,11 @@ final case class Enum( unknownFields.writeTo(_output__) } def withName(__v: _root_.scala.Predef.String): Enum = copy(name = __v) - def clearEnumvalue = copy(enumvalue = _root_.scala.Seq.empty) + def clearEnumvalue = copy(enumvalue = _root_.scala.Vector.empty) def addEnumvalue(__vs: com.google.protobuf.`type`.EnumValue *): Enum = addAllEnumvalue(__vs) def addAllEnumvalue(__vs: Iterable[com.google.protobuf.`type`.EnumValue]): Enum = copy(enumvalue = enumvalue ++ __vs) def withEnumvalue(__v: _root_.scala.Seq[com.google.protobuf.`type`.EnumValue]): Enum = copy(enumvalue = __v) - def clearOptions = copy(options = _root_.scala.Seq.empty) + def clearOptions = copy(options = _root_.scala.Vector.empty) def addOptions(__vs: com.google.protobuf.`type`.OptionProto *): Enum = addAllOptions(__vs) def addAllOptions(__vs: Iterable[com.google.protobuf.`type`.OptionProto]): Enum = copy(options = options ++ __vs) def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Enum = copy(options = __v) @@ -262,8 +262,8 @@ object Enum extends scalapb.GeneratedMessageCompanion[com.google.protobuf.`type` } lazy val defaultInstance = com.google.protobuf.`type`.Enum( name = "", - enumvalue = _root_.scala.Seq.empty, - options = _root_.scala.Seq.empty, + enumvalue = _root_.scala.Vector.empty, + options = _root_.scala.Vector.empty, sourceContext = _root_.scala.None, syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, edition = "" diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/EnumValue.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/EnumValue.scala index 97aadf69c..2b72bc5e1 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/EnumValue.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/EnumValue.scala @@ -17,7 +17,7 @@ import _root_.scalapb.internal.compat.JavaConverters._ final case class EnumValue( name: _root_.scala.Predef.String = "", number: _root_.scala.Int = 0, - options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Seq.empty, + options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Vector.empty, unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty ) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[EnumValue] { @transient @@ -77,7 +77,7 @@ final case class EnumValue( } def withName(__v: _root_.scala.Predef.String): EnumValue = copy(name = __v) def withNumber(__v: _root_.scala.Int): EnumValue = copy(number = __v) - def clearOptions = copy(options = _root_.scala.Seq.empty) + def clearOptions = copy(options = _root_.scala.Vector.empty) def addOptions(__vs: com.google.protobuf.`type`.OptionProto *): EnumValue = addAllOptions(__vs) def addAllOptions(__vs: Iterable[com.google.protobuf.`type`.OptionProto]): EnumValue = copy(options = options ++ __vs) def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): EnumValue = copy(options = __v) @@ -177,7 +177,7 @@ object EnumValue extends scalapb.GeneratedMessageCompanion[com.google.protobuf.` lazy val defaultInstance = com.google.protobuf.`type`.EnumValue( name = "", number = 0, - options = _root_.scala.Seq.empty + options = _root_.scala.Vector.empty ) implicit class EnumValueLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.`type`.EnumValue]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.`type`.EnumValue](_l) { def name: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Predef.String] = field(_.name)((c_, f_) => c_.copy(name = f_)) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/Field.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/Field.scala index aa476ad65..490315dd0 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/Field.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/Field.scala @@ -38,7 +38,7 @@ final case class Field( typeUrl: _root_.scala.Predef.String = "", oneofIndex: _root_.scala.Int = 0, packed: _root_.scala.Boolean = false, - options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Seq.empty, + options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Vector.empty, jsonName: _root_.scala.Predef.String = "", defaultValue: _root_.scala.Predef.String = "", unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty @@ -196,7 +196,7 @@ final case class Field( def withTypeUrl(__v: _root_.scala.Predef.String): Field = copy(typeUrl = __v) def withOneofIndex(__v: _root_.scala.Int): Field = copy(oneofIndex = __v) def withPacked(__v: _root_.scala.Boolean): Field = copy(packed = __v) - def clearOptions = copy(options = _root_.scala.Seq.empty) + def clearOptions = copy(options = _root_.scala.Vector.empty) def addOptions(__vs: com.google.protobuf.`type`.OptionProto *): Field = addAllOptions(__vs) def addAllOptions(__vs: Iterable[com.google.protobuf.`type`.OptionProto]): Field = copy(options = options ++ __vs) def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Field = copy(options = __v) @@ -392,7 +392,7 @@ object Field extends scalapb.GeneratedMessageCompanion[com.google.protobuf.`type typeUrl = "", oneofIndex = 0, packed = false, - options = _root_.scala.Seq.empty, + options = _root_.scala.Vector.empty, jsonName = "", defaultValue = "" ) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/Type.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/Type.scala index ffcf9f14e..489559f29 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/Type.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/Type.scala @@ -24,9 +24,9 @@ import _root_.scalapb.internal.compat.JavaConverters._ @SerialVersionUID(0L) final case class Type( name: _root_.scala.Predef.String = "", - fields: _root_.scala.Seq[com.google.protobuf.`type`.Field] = _root_.scala.Seq.empty, - oneofs: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Seq.empty, - options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Seq.empty, + fields: _root_.scala.Seq[com.google.protobuf.`type`.Field] = _root_.scala.Vector.empty, + oneofs: _root_.scala.Seq[_root_.scala.Predef.String] = _root_.scala.Vector.empty, + options: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto] = _root_.scala.Vector.empty, sourceContext: _root_.scala.Option[com.google.protobuf.source_context.SourceContext] = _root_.scala.None, syntax: com.google.protobuf.`type`.Syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, edition: _root_.scala.Predef.String = "", @@ -129,15 +129,15 @@ final case class Type( unknownFields.writeTo(_output__) } def withName(__v: _root_.scala.Predef.String): Type = copy(name = __v) - def clearFields = copy(fields = _root_.scala.Seq.empty) + def clearFields = copy(fields = _root_.scala.Vector.empty) def addFields(__vs: com.google.protobuf.`type`.Field *): Type = addAllFields(__vs) def addAllFields(__vs: Iterable[com.google.protobuf.`type`.Field]): Type = copy(fields = fields ++ __vs) def withFields(__v: _root_.scala.Seq[com.google.protobuf.`type`.Field]): Type = copy(fields = __v) - def clearOneofs = copy(oneofs = _root_.scala.Seq.empty) + def clearOneofs = copy(oneofs = _root_.scala.Vector.empty) def addOneofs(__vs: _root_.scala.Predef.String *): Type = addAllOneofs(__vs) def addAllOneofs(__vs: Iterable[_root_.scala.Predef.String]): Type = copy(oneofs = oneofs ++ __vs) def withOneofs(__v: _root_.scala.Seq[_root_.scala.Predef.String]): Type = copy(oneofs = __v) - def clearOptions = copy(options = _root_.scala.Seq.empty) + def clearOptions = copy(options = _root_.scala.Vector.empty) def addOptions(__vs: com.google.protobuf.`type`.OptionProto *): Type = addAllOptions(__vs) def addAllOptions(__vs: Iterable[com.google.protobuf.`type`.OptionProto]): Type = copy(options = options ++ __vs) def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Type = copy(options = __v) @@ -286,9 +286,9 @@ object Type extends scalapb.GeneratedMessageCompanion[com.google.protobuf.`type` } lazy val defaultInstance = com.google.protobuf.`type`.Type( name = "", - fields = _root_.scala.Seq.empty, - oneofs = _root_.scala.Seq.empty, - options = _root_.scala.Seq.empty, + fields = _root_.scala.Vector.empty, + oneofs = _root_.scala.Vector.empty, + options = _root_.scala.Vector.empty, sourceContext = _root_.scala.None, syntax = com.google.protobuf.`type`.Syntax.SYNTAX_PROTO2, edition = ""