diff --git a/compiler-plugin/src/main/scala/scalapb/compiler/ProtobufGenerator.scala b/compiler-plugin/src/main/scala/scalapb/compiler/ProtobufGenerator.scala index b366312e8..5cc59b8be 100644 --- a/compiler-plugin/src/main/scala/scalapb/compiler/ProtobufGenerator.scala +++ b/compiler-plugin/src/main/scala/scalapb/compiler/ProtobufGenerator.scala @@ -1409,7 +1409,7 @@ class ProtobufGenerator( .when(field.supportsPresence) { p => p.add( s"""def $clearMethod: ${message.scalaType.nameSymbol} = copy(${field.scalaName.asSymbol} = ${C.None}) - |def $withMethod(__v: ${singleType}): ${message.scalaType.nameSymbol} = copy(${field.scalaName.asSymbol} = Option(__v))""".stripMargin + |def $withMethod(__v: ${singleType}): ${message.scalaType.nameSymbol} = copy(${field.scalaName.asSymbol} = _root_.scala.Option(__v))""".stripMargin ) } .when(field.isInOneof) { p => diff --git a/docs/src/main/scala/generated/com/thesamet/docs/json/MyContainer.scala b/docs/src/main/scala/generated/com/thesamet/docs/json/MyContainer.scala index 146ce142f..4bee6e321 100644 --- a/docs/src/main/scala/generated/com/thesamet/docs/json/MyContainer.scala +++ b/docs/src/main/scala/generated/com/thesamet/docs/json/MyContainer.scala @@ -39,7 +39,7 @@ final case class MyContainer( } def getMyAny: com.google.protobuf.any.Any = myAny.getOrElse(com.google.protobuf.any.Any.defaultInstance) def clearMyAny: MyContainer = copy(myAny = _root_.scala.None) - def withMyAny(__v: com.google.protobuf.any.Any): MyContainer = copy(myAny = Option(__v)) + def withMyAny(__v: com.google.protobuf.any.Any): MyContainer = copy(myAny = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 45453c0ea..030ad14f8 100644 --- a/docs/src/main/scala/generated/scalapb/perf/protos/MessageContainer.scala +++ b/docs/src/main/scala/generated/scalapb/perf/protos/MessageContainer.scala @@ -53,7 +53,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 = Option(__v)) + def withOpt(__v: scalapb.perf.protos.SimpleMessage): MessageContainer = copy(opt = _root_.scala.Option(__v)) def clearRep = copy(rep = _root_.scala.Seq.empty) def addRep(__vs: scalapb.perf.protos.SimpleMessage *): MessageContainer = addAllRep(__vs) def addAllRep(__vs: Iterable[scalapb.perf.protos.SimpleMessage]): MessageContainer = copy(rep = rep ++ __vs) 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 d45edb5ca..ff6bc08ee 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 @@ -169,7 +169,7 @@ final case class Api( def withVersion(__v: _root_.scala.Predef.String): Api = copy(version = __v) 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 = Option(__v)) + 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 addMixins(__vs: com.google.protobuf.api.Mixin *): Api = addAllMixins(__vs) def addAllMixins(__vs: Iterable[com.google.protobuf.api.Mixin]): Api = copy(mixins = mixins ++ __vs) 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 385ac79b2..3c005ee51 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 @@ -118,7 +118,7 @@ final case class CodeGeneratorRequest( 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 = Option(__v)) + def withParameter(__v: _root_.scala.Predef.String): CodeGeneratorRequest = copy(parameter = _root_.scala.Option(__v)) def clearProtoFile = copy(protoFile = _root_.scala.Seq.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) @@ -129,7 +129,7 @@ final case class CodeGeneratorRequest( def withSourceFileDescriptors(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto]): CodeGeneratorRequest = copy(sourceFileDescriptors = __v) def getCompilerVersion: com.google.protobuf.compiler.plugin.Version = compilerVersion.getOrElse(com.google.protobuf.compiler.plugin.Version.defaultInstance) def clearCompilerVersion: CodeGeneratorRequest = copy(compilerVersion = _root_.scala.None) - def withCompilerVersion(__v: com.google.protobuf.compiler.plugin.Version): CodeGeneratorRequest = copy(compilerVersion = Option(__v)) + def withCompilerVersion(__v: com.google.protobuf.compiler.plugin.Version): CodeGeneratorRequest = copy(compilerVersion = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 d5b7a056e..01209757b 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 @@ -100,16 +100,16 @@ final case class CodeGeneratorResponse( } def getError: _root_.scala.Predef.String = error.getOrElse("") def clearError: CodeGeneratorResponse = copy(error = _root_.scala.None) - def withError(__v: _root_.scala.Predef.String): CodeGeneratorResponse = copy(error = Option(__v)) + def withError(__v: _root_.scala.Predef.String): CodeGeneratorResponse = copy(error = _root_.scala.Option(__v)) def getSupportedFeatures: _root_.scala.Long = supportedFeatures.getOrElse(0L) def clearSupportedFeatures: CodeGeneratorResponse = copy(supportedFeatures = _root_.scala.None) - def withSupportedFeatures(__v: _root_.scala.Long): CodeGeneratorResponse = copy(supportedFeatures = Option(__v)) + def withSupportedFeatures(__v: _root_.scala.Long): CodeGeneratorResponse = copy(supportedFeatures = _root_.scala.Option(__v)) def getMinimumEdition: _root_.scala.Int = minimumEdition.getOrElse(0) def clearMinimumEdition: CodeGeneratorResponse = copy(minimumEdition = _root_.scala.None) - def withMinimumEdition(__v: _root_.scala.Int): CodeGeneratorResponse = copy(minimumEdition = Option(__v)) + def withMinimumEdition(__v: _root_.scala.Int): CodeGeneratorResponse = copy(minimumEdition = _root_.scala.Option(__v)) 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 = Option(__v)) + def withMaximumEdition(__v: _root_.scala.Int): CodeGeneratorResponse = copy(maximumEdition = _root_.scala.Option(__v)) def clearFile = copy(file = _root_.scala.Seq.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) @@ -384,16 +384,16 @@ object CodeGeneratorResponse extends scalapb.GeneratedMessageCompanion[com.googl } def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: File = copy(name = _root_.scala.None) - def withName(__v: _root_.scala.Predef.String): File = copy(name = Option(__v)) + def withName(__v: _root_.scala.Predef.String): File = copy(name = _root_.scala.Option(__v)) def getInsertionPoint: _root_.scala.Predef.String = insertionPoint.getOrElse("") def clearInsertionPoint: File = copy(insertionPoint = _root_.scala.None) - def withInsertionPoint(__v: _root_.scala.Predef.String): File = copy(insertionPoint = Option(__v)) + def withInsertionPoint(__v: _root_.scala.Predef.String): File = copy(insertionPoint = _root_.scala.Option(__v)) def getContent: _root_.scala.Predef.String = content.getOrElse("") def clearContent: File = copy(content = _root_.scala.None) - def withContent(__v: _root_.scala.Predef.String): File = copy(content = Option(__v)) + def withContent(__v: _root_.scala.Predef.String): File = copy(content = _root_.scala.Option(__v)) def getGeneratedCodeInfo: com.google.protobuf.descriptor.GeneratedCodeInfo = generatedCodeInfo.getOrElse(com.google.protobuf.descriptor.GeneratedCodeInfo.defaultInstance) def clearGeneratedCodeInfo: File = copy(generatedCodeInfo = _root_.scala.None) - def withGeneratedCodeInfo(__v: com.google.protobuf.descriptor.GeneratedCodeInfo): File = copy(generatedCodeInfo = Option(__v)) + def withGeneratedCodeInfo(__v: com.google.protobuf.descriptor.GeneratedCodeInfo): File = copy(generatedCodeInfo = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/compiler/plugin/Version.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/compiler/plugin/Version.scala index 61bf0bd62..087902812 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/compiler/plugin/Version.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/compiler/plugin/Version.scala @@ -70,16 +70,16 @@ final case class Version( } def getMajor: _root_.scala.Int = major.getOrElse(0) def clearMajor: Version = copy(major = _root_.scala.None) - def withMajor(__v: _root_.scala.Int): Version = copy(major = Option(__v)) + def withMajor(__v: _root_.scala.Int): Version = copy(major = _root_.scala.Option(__v)) def getMinor: _root_.scala.Int = minor.getOrElse(0) def clearMinor: Version = copy(minor = _root_.scala.None) - def withMinor(__v: _root_.scala.Int): Version = copy(minor = Option(__v)) + def withMinor(__v: _root_.scala.Int): Version = copy(minor = _root_.scala.Option(__v)) def getPatch: _root_.scala.Int = patch.getOrElse(0) def clearPatch: Version = copy(patch = _root_.scala.None) - def withPatch(__v: _root_.scala.Int): Version = copy(patch = Option(__v)) + def withPatch(__v: _root_.scala.Int): Version = copy(patch = _root_.scala.Option(__v)) def getSuffix: _root_.scala.Predef.String = suffix.getOrElse("") def clearSuffix: Version = copy(suffix = _root_.scala.None) - def withSuffix(__v: _root_.scala.Predef.String): Version = copy(suffix = Option(__v)) + def withSuffix(__v: _root_.scala.Predef.String): Version = copy(suffix = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 6650d82e3..0bfe8e826 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 @@ -140,7 +140,7 @@ 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 = Option(__v)) + def withName(__v: _root_.scala.Predef.String): DescriptorProto = copy(name = _root_.scala.Option(__v)) def clearField = copy(field = _root_.scala.Seq.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) @@ -167,7 +167,7 @@ final case class DescriptorProto( 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 = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.MessageOptions): DescriptorProto = copy(options = _root_.scala.Option(__v)) def clearReservedRange = copy(reservedRange = _root_.scala.Seq.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) @@ -382,13 +382,13 @@ object DescriptorProto extends scalapb.GeneratedMessageCompanion[com.google.prot } def getStart: _root_.scala.Int = start.getOrElse(0) def clearStart: ExtensionRange = copy(start = _root_.scala.None) - def withStart(__v: _root_.scala.Int): ExtensionRange = copy(start = Option(__v)) + def withStart(__v: _root_.scala.Int): ExtensionRange = copy(start = _root_.scala.Option(__v)) def getEnd: _root_.scala.Int = end.getOrElse(0) def clearEnd: ExtensionRange = copy(end = _root_.scala.None) - def withEnd(__v: _root_.scala.Int): ExtensionRange = copy(end = Option(__v)) + def withEnd(__v: _root_.scala.Int): ExtensionRange = copy(end = _root_.scala.Option(__v)) def getOptions: com.google.protobuf.descriptor.ExtensionRangeOptions = options.getOrElse(com.google.protobuf.descriptor.ExtensionRangeOptions.defaultInstance) def clearOptions: ExtensionRange = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.ExtensionRangeOptions): ExtensionRange = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.ExtensionRangeOptions): ExtensionRange = copy(options = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { @@ -544,10 +544,10 @@ object DescriptorProto extends scalapb.GeneratedMessageCompanion[com.google.prot } def getStart: _root_.scala.Int = start.getOrElse(0) def clearStart: ReservedRange = copy(start = _root_.scala.None) - def withStart(__v: _root_.scala.Int): ReservedRange = copy(start = Option(__v)) + def withStart(__v: _root_.scala.Int): ReservedRange = copy(start = _root_.scala.Option(__v)) def getEnd: _root_.scala.Int = end.getOrElse(0) def clearEnd: ReservedRange = copy(end = _root_.scala.None) - def withEnd(__v: _root_.scala.Int): ReservedRange = copy(end = Option(__v)) + def withEnd(__v: _root_.scala.Int): ReservedRange = copy(end = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 55cff50fd..45759cd2b 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 @@ -89,14 +89,14 @@ 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 = Option(__v)) + def withName(__v: _root_.scala.Predef.String): EnumDescriptorProto = copy(name = _root_.scala.Option(__v)) def clearValue = copy(value = _root_.scala.Seq.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 = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.EnumOptions): EnumDescriptorProto = copy(options = _root_.scala.Option(__v)) def clearReservedRange = copy(reservedRange = _root_.scala.Seq.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) @@ -261,10 +261,10 @@ object EnumDescriptorProto extends scalapb.GeneratedMessageCompanion[com.google. } def getStart: _root_.scala.Int = start.getOrElse(0) def clearStart: EnumReservedRange = copy(start = _root_.scala.None) - def withStart(__v: _root_.scala.Int): EnumReservedRange = copy(start = Option(__v)) + def withStart(__v: _root_.scala.Int): EnumReservedRange = copy(start = _root_.scala.Option(__v)) def getEnd: _root_.scala.Int = end.getOrElse(0) def clearEnd: EnumReservedRange = copy(end = _root_.scala.None) - def withEnd(__v: _root_.scala.Int): EnumReservedRange = copy(end = Option(__v)) + def withEnd(__v: _root_.scala.Int): EnumReservedRange = copy(end = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 e20fef169..327a38df4 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 @@ -97,16 +97,16 @@ final case class EnumOptions( } def getAllowAlias: _root_.scala.Boolean = allowAlias.getOrElse(false) def clearAllowAlias: EnumOptions = copy(allowAlias = _root_.scala.None) - def withAllowAlias(__v: _root_.scala.Boolean): EnumOptions = copy(allowAlias = Option(__v)) + def withAllowAlias(__v: _root_.scala.Boolean): EnumOptions = copy(allowAlias = _root_.scala.Option(__v)) def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: EnumOptions = copy(deprecated = _root_.scala.None) - def withDeprecated(__v: _root_.scala.Boolean): EnumOptions = copy(deprecated = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): EnumOptions = copy(deprecated = _root_.scala.Option(__v)) def getDeprecatedLegacyJsonFieldConflicts: _root_.scala.Boolean = deprecatedLegacyJsonFieldConflicts.getOrElse(false) def clearDeprecatedLegacyJsonFieldConflicts: EnumOptions = copy(deprecatedLegacyJsonFieldConflicts = _root_.scala.None) - def withDeprecatedLegacyJsonFieldConflicts(__v: _root_.scala.Boolean): EnumOptions = copy(deprecatedLegacyJsonFieldConflicts = Option(__v)) + def withDeprecatedLegacyJsonFieldConflicts(__v: _root_.scala.Boolean): EnumOptions = copy(deprecatedLegacyJsonFieldConflicts = _root_.scala.Option(__v)) 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 = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): EnumOptions = copy(features = _root_.scala.Option(__v)) def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.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) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumValueDescriptorProto.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumValueDescriptorProto.scala index 68a583422..d07fd9ca9 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumValueDescriptorProto.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/EnumValueDescriptorProto.scala @@ -59,13 +59,13 @@ final case class EnumValueDescriptorProto( } def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: EnumValueDescriptorProto = copy(name = _root_.scala.None) - def withName(__v: _root_.scala.Predef.String): EnumValueDescriptorProto = copy(name = Option(__v)) + def withName(__v: _root_.scala.Predef.String): EnumValueDescriptorProto = copy(name = _root_.scala.Option(__v)) def getNumber: _root_.scala.Int = number.getOrElse(0) def clearNumber: EnumValueDescriptorProto = copy(number = _root_.scala.None) - def withNumber(__v: _root_.scala.Int): EnumValueDescriptorProto = copy(number = Option(__v)) + def withNumber(__v: _root_.scala.Int): EnumValueDescriptorProto = copy(number = _root_.scala.Option(__v)) def getOptions: com.google.protobuf.descriptor.EnumValueOptions = options.getOrElse(com.google.protobuf.descriptor.EnumValueOptions.defaultInstance) def clearOptions: EnumValueDescriptorProto = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.EnumValueOptions): EnumValueDescriptorProto = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.EnumValueOptions): EnumValueDescriptorProto = copy(options = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 6356fce43..7382d12cf 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 @@ -95,16 +95,16 @@ final case class EnumValueOptions( } def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: EnumValueOptions = copy(deprecated = _root_.scala.None) - def withDeprecated(__v: _root_.scala.Boolean): EnumValueOptions = copy(deprecated = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): EnumValueOptions = copy(deprecated = _root_.scala.Option(__v)) def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: EnumValueOptions = copy(features = _root_.scala.None) - def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): EnumValueOptions = copy(features = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): EnumValueOptions = copy(features = _root_.scala.Option(__v)) def getDebugRedact: _root_.scala.Boolean = debugRedact.getOrElse(false) def clearDebugRedact: EnumValueOptions = copy(debugRedact = _root_.scala.None) - def withDebugRedact(__v: _root_.scala.Boolean): EnumValueOptions = copy(debugRedact = Option(__v)) + def withDebugRedact(__v: _root_.scala.Boolean): EnumValueOptions = copy(debugRedact = _root_.scala.Option(__v)) 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 = Option(__v)) + 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 addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): EnumValueOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): EnumValueOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) 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 e26e5702b..3d0338920 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 @@ -91,10 +91,10 @@ final case class ExtensionRangeOptions( def withDeclaration(__v: _root_.scala.Seq[com.google.protobuf.descriptor.ExtensionRangeOptions.Declaration]): ExtensionRangeOptions = copy(declaration = __v) def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: ExtensionRangeOptions = copy(features = _root_.scala.None) - def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): ExtensionRangeOptions = copy(features = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): ExtensionRangeOptions = copy(features = _root_.scala.Option(__v)) def getVerification: com.google.protobuf.descriptor.ExtensionRangeOptions.VerificationState = verification.getOrElse(com.google.protobuf.descriptor.ExtensionRangeOptions.VerificationState.UNVERIFIED) def clearVerification: ExtensionRangeOptions = copy(verification = _root_.scala.None) - def withVerification(__v: com.google.protobuf.descriptor.ExtensionRangeOptions.VerificationState): ExtensionRangeOptions = copy(verification = Option(__v)) + def withVerification(__v: com.google.protobuf.descriptor.ExtensionRangeOptions.VerificationState): ExtensionRangeOptions = copy(verification = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { @@ -321,19 +321,19 @@ object ExtensionRangeOptions extends scalapb.GeneratedMessageCompanion[com.googl } def getNumber: _root_.scala.Int = number.getOrElse(0) def clearNumber: Declaration = copy(number = _root_.scala.None) - def withNumber(__v: _root_.scala.Int): Declaration = copy(number = Option(__v)) + def withNumber(__v: _root_.scala.Int): Declaration = copy(number = _root_.scala.Option(__v)) def getFullName: _root_.scala.Predef.String = fullName.getOrElse("") def clearFullName: Declaration = copy(fullName = _root_.scala.None) - def withFullName(__v: _root_.scala.Predef.String): Declaration = copy(fullName = Option(__v)) + def withFullName(__v: _root_.scala.Predef.String): Declaration = copy(fullName = _root_.scala.Option(__v)) def getType: _root_.scala.Predef.String = `type`.getOrElse("") def clearType: Declaration = copy(`type` = _root_.scala.None) - def withType(__v: _root_.scala.Predef.String): Declaration = copy(`type` = Option(__v)) + def withType(__v: _root_.scala.Predef.String): Declaration = copy(`type` = _root_.scala.Option(__v)) def getReserved: _root_.scala.Boolean = reserved.getOrElse(false) def clearReserved: Declaration = copy(reserved = _root_.scala.None) - def withReserved(__v: _root_.scala.Boolean): Declaration = copy(reserved = Option(__v)) + def withReserved(__v: _root_.scala.Boolean): Declaration = copy(reserved = _root_.scala.Option(__v)) def getRepeated: _root_.scala.Boolean = repeated.getOrElse(false) def clearRepeated: Declaration = copy(repeated = _root_.scala.None) - def withRepeated(__v: _root_.scala.Boolean): Declaration = copy(repeated = Option(__v)) + def withRepeated(__v: _root_.scala.Boolean): Declaration = copy(repeated = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FeatureSet.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FeatureSet.scala index e4814fb31..e31148fef 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FeatureSet.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FeatureSet.scala @@ -89,22 +89,22 @@ final case class FeatureSet( } def getFieldPresence: com.google.protobuf.descriptor.FeatureSet.FieldPresence = fieldPresence.getOrElse(com.google.protobuf.descriptor.FeatureSet.FieldPresence.FIELD_PRESENCE_UNKNOWN) def clearFieldPresence: FeatureSet = copy(fieldPresence = _root_.scala.None) - def withFieldPresence(__v: com.google.protobuf.descriptor.FeatureSet.FieldPresence): FeatureSet = copy(fieldPresence = Option(__v)) + def withFieldPresence(__v: com.google.protobuf.descriptor.FeatureSet.FieldPresence): FeatureSet = copy(fieldPresence = _root_.scala.Option(__v)) def getEnumType: com.google.protobuf.descriptor.FeatureSet.EnumType = enumType.getOrElse(com.google.protobuf.descriptor.FeatureSet.EnumType.ENUM_TYPE_UNKNOWN) def clearEnumType: FeatureSet = copy(enumType = _root_.scala.None) - def withEnumType(__v: com.google.protobuf.descriptor.FeatureSet.EnumType): FeatureSet = copy(enumType = Option(__v)) + def withEnumType(__v: com.google.protobuf.descriptor.FeatureSet.EnumType): FeatureSet = copy(enumType = _root_.scala.Option(__v)) def getRepeatedFieldEncoding: com.google.protobuf.descriptor.FeatureSet.RepeatedFieldEncoding = repeatedFieldEncoding.getOrElse(com.google.protobuf.descriptor.FeatureSet.RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN) def clearRepeatedFieldEncoding: FeatureSet = copy(repeatedFieldEncoding = _root_.scala.None) - def withRepeatedFieldEncoding(__v: com.google.protobuf.descriptor.FeatureSet.RepeatedFieldEncoding): FeatureSet = copy(repeatedFieldEncoding = Option(__v)) + def withRepeatedFieldEncoding(__v: com.google.protobuf.descriptor.FeatureSet.RepeatedFieldEncoding): FeatureSet = copy(repeatedFieldEncoding = _root_.scala.Option(__v)) def getUtf8Validation: com.google.protobuf.descriptor.FeatureSet.Utf8Validation = utf8Validation.getOrElse(com.google.protobuf.descriptor.FeatureSet.Utf8Validation.UTF8_VALIDATION_UNKNOWN) def clearUtf8Validation: FeatureSet = copy(utf8Validation = _root_.scala.None) - def withUtf8Validation(__v: com.google.protobuf.descriptor.FeatureSet.Utf8Validation): FeatureSet = copy(utf8Validation = Option(__v)) + def withUtf8Validation(__v: com.google.protobuf.descriptor.FeatureSet.Utf8Validation): FeatureSet = copy(utf8Validation = _root_.scala.Option(__v)) def getMessageEncoding: com.google.protobuf.descriptor.FeatureSet.MessageEncoding = messageEncoding.getOrElse(com.google.protobuf.descriptor.FeatureSet.MessageEncoding.MESSAGE_ENCODING_UNKNOWN) def clearMessageEncoding: FeatureSet = copy(messageEncoding = _root_.scala.None) - def withMessageEncoding(__v: com.google.protobuf.descriptor.FeatureSet.MessageEncoding): FeatureSet = copy(messageEncoding = Option(__v)) + def withMessageEncoding(__v: com.google.protobuf.descriptor.FeatureSet.MessageEncoding): FeatureSet = copy(messageEncoding = _root_.scala.Option(__v)) def getJsonFormat: com.google.protobuf.descriptor.FeatureSet.JsonFormat = jsonFormat.getOrElse(com.google.protobuf.descriptor.FeatureSet.JsonFormat.JSON_FORMAT_UNKNOWN) def clearJsonFormat: FeatureSet = copy(jsonFormat = _root_.scala.None) - def withJsonFormat(__v: com.google.protobuf.descriptor.FeatureSet.JsonFormat): FeatureSet = copy(jsonFormat = Option(__v)) + def withJsonFormat(__v: com.google.protobuf.descriptor.FeatureSet.JsonFormat): FeatureSet = copy(jsonFormat = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 43414e43d..bc824d9b5 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 @@ -73,10 +73,10 @@ final case class FeatureSetDefaults( def withDefaults(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault]): FeatureSetDefaults = copy(defaults = __v) def getMinimumEdition: com.google.protobuf.descriptor.Edition = minimumEdition.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearMinimumEdition: FeatureSetDefaults = copy(minimumEdition = _root_.scala.None) - def withMinimumEdition(__v: com.google.protobuf.descriptor.Edition): FeatureSetDefaults = copy(minimumEdition = Option(__v)) + def withMinimumEdition(__v: com.google.protobuf.descriptor.Edition): FeatureSetDefaults = copy(minimumEdition = _root_.scala.Option(__v)) def getMaximumEdition: com.google.protobuf.descriptor.Edition = maximumEdition.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearMaximumEdition: FeatureSetDefaults = copy(maximumEdition = _root_.scala.None) - def withMaximumEdition(__v: com.google.protobuf.descriptor.Edition): FeatureSetDefaults = copy(maximumEdition = Option(__v)) + def withMaximumEdition(__v: com.google.protobuf.descriptor.Edition): FeatureSetDefaults = copy(maximumEdition = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { @@ -231,13 +231,13 @@ object FeatureSetDefaults extends scalapb.GeneratedMessageCompanion[com.google.p } def getEdition: com.google.protobuf.descriptor.Edition = edition.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearEdition: FeatureSetEditionDefault = copy(edition = _root_.scala.None) - def withEdition(__v: com.google.protobuf.descriptor.Edition): FeatureSetEditionDefault = copy(edition = Option(__v)) + def withEdition(__v: com.google.protobuf.descriptor.Edition): FeatureSetEditionDefault = copy(edition = _root_.scala.Option(__v)) def getOverridableFeatures: com.google.protobuf.descriptor.FeatureSet = overridableFeatures.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearOverridableFeatures: FeatureSetEditionDefault = copy(overridableFeatures = _root_.scala.None) - def withOverridableFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FeatureSetEditionDefault = copy(overridableFeatures = Option(__v)) + def withOverridableFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FeatureSetEditionDefault = copy(overridableFeatures = _root_.scala.Option(__v)) def getFixedFeatures: com.google.protobuf.descriptor.FeatureSet = fixedFeatures.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFixedFeatures: FeatureSetEditionDefault = copy(fixedFeatures = _root_.scala.None) - def withFixedFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FeatureSetEditionDefault = copy(fixedFeatures = Option(__v)) + def withFixedFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FeatureSetEditionDefault = copy(fixedFeatures = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FieldDescriptorProto.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FieldDescriptorProto.scala index ffd09ef8d..d3a3d93ca 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FieldDescriptorProto.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FieldDescriptorProto.scala @@ -179,37 +179,37 @@ final case class FieldDescriptorProto( } def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: FieldDescriptorProto = copy(name = _root_.scala.None) - def withName(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(name = Option(__v)) + def withName(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(name = _root_.scala.Option(__v)) def getNumber: _root_.scala.Int = number.getOrElse(0) def clearNumber: FieldDescriptorProto = copy(number = _root_.scala.None) - def withNumber(__v: _root_.scala.Int): FieldDescriptorProto = copy(number = Option(__v)) + def withNumber(__v: _root_.scala.Int): FieldDescriptorProto = copy(number = _root_.scala.Option(__v)) def getLabel: com.google.protobuf.descriptor.FieldDescriptorProto.Label = label.getOrElse(com.google.protobuf.descriptor.FieldDescriptorProto.Label.LABEL_OPTIONAL) def clearLabel: FieldDescriptorProto = copy(label = _root_.scala.None) - def withLabel(__v: com.google.protobuf.descriptor.FieldDescriptorProto.Label): FieldDescriptorProto = copy(label = Option(__v)) + def withLabel(__v: com.google.protobuf.descriptor.FieldDescriptorProto.Label): FieldDescriptorProto = copy(label = _root_.scala.Option(__v)) def getType: com.google.protobuf.descriptor.FieldDescriptorProto.Type = `type`.getOrElse(com.google.protobuf.descriptor.FieldDescriptorProto.Type.TYPE_DOUBLE) def clearType: FieldDescriptorProto = copy(`type` = _root_.scala.None) - def withType(__v: com.google.protobuf.descriptor.FieldDescriptorProto.Type): FieldDescriptorProto = copy(`type` = Option(__v)) + def withType(__v: com.google.protobuf.descriptor.FieldDescriptorProto.Type): FieldDescriptorProto = copy(`type` = _root_.scala.Option(__v)) def getTypeName: _root_.scala.Predef.String = typeName.getOrElse("") def clearTypeName: FieldDescriptorProto = copy(typeName = _root_.scala.None) - def withTypeName(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(typeName = Option(__v)) + def withTypeName(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(typeName = _root_.scala.Option(__v)) def getExtendee: _root_.scala.Predef.String = extendee.getOrElse("") def clearExtendee: FieldDescriptorProto = copy(extendee = _root_.scala.None) - def withExtendee(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(extendee = Option(__v)) + def withExtendee(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(extendee = _root_.scala.Option(__v)) def getDefaultValue: _root_.scala.Predef.String = defaultValue.getOrElse("") def clearDefaultValue: FieldDescriptorProto = copy(defaultValue = _root_.scala.None) - def withDefaultValue(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(defaultValue = Option(__v)) + def withDefaultValue(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(defaultValue = _root_.scala.Option(__v)) def getOneofIndex: _root_.scala.Int = oneofIndex.getOrElse(0) def clearOneofIndex: FieldDescriptorProto = copy(oneofIndex = _root_.scala.None) - def withOneofIndex(__v: _root_.scala.Int): FieldDescriptorProto = copy(oneofIndex = Option(__v)) + def withOneofIndex(__v: _root_.scala.Int): FieldDescriptorProto = copy(oneofIndex = _root_.scala.Option(__v)) def getJsonName: _root_.scala.Predef.String = jsonName.getOrElse("") def clearJsonName: FieldDescriptorProto = copy(jsonName = _root_.scala.None) - def withJsonName(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(jsonName = Option(__v)) + def withJsonName(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(jsonName = _root_.scala.Option(__v)) def getOptions: com.google.protobuf.descriptor.FieldOptions = options.getOrElse(com.google.protobuf.descriptor.FieldOptions.defaultInstance) def clearOptions: FieldDescriptorProto = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.FieldOptions): FieldDescriptorProto = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.FieldOptions): FieldDescriptorProto = copy(options = _root_.scala.Option(__v)) def getProto3Optional: _root_.scala.Boolean = proto3Optional.getOrElse(false) def clearProto3Optional: FieldDescriptorProto = copy(proto3Optional = _root_.scala.None) - def withProto3Optional(__v: _root_.scala.Boolean): FieldDescriptorProto = copy(proto3Optional = Option(__v)) + def withProto3Optional(__v: _root_.scala.Boolean): FieldDescriptorProto = copy(proto3Optional = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 3cad6b4fd..f53346cb9 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 @@ -232,31 +232,31 @@ final case class FieldOptions( } def getCtype: com.google.protobuf.descriptor.FieldOptions.CType = ctype.getOrElse(com.google.protobuf.descriptor.FieldOptions.CType.STRING) def clearCtype: FieldOptions = copy(ctype = _root_.scala.None) - def withCtype(__v: com.google.protobuf.descriptor.FieldOptions.CType): FieldOptions = copy(ctype = Option(__v)) + def withCtype(__v: com.google.protobuf.descriptor.FieldOptions.CType): FieldOptions = copy(ctype = _root_.scala.Option(__v)) def getPacked: _root_.scala.Boolean = packed.getOrElse(false) def clearPacked: FieldOptions = copy(packed = _root_.scala.None) - def withPacked(__v: _root_.scala.Boolean): FieldOptions = copy(packed = Option(__v)) + def withPacked(__v: _root_.scala.Boolean): FieldOptions = copy(packed = _root_.scala.Option(__v)) def getJstype: com.google.protobuf.descriptor.FieldOptions.JSType = jstype.getOrElse(com.google.protobuf.descriptor.FieldOptions.JSType.JS_NORMAL) def clearJstype: FieldOptions = copy(jstype = _root_.scala.None) - def withJstype(__v: com.google.protobuf.descriptor.FieldOptions.JSType): FieldOptions = copy(jstype = Option(__v)) + def withJstype(__v: com.google.protobuf.descriptor.FieldOptions.JSType): FieldOptions = copy(jstype = _root_.scala.Option(__v)) def getLazy: _root_.scala.Boolean = `lazy`.getOrElse(false) def clearLazy: FieldOptions = copy(`lazy` = _root_.scala.None) - def withLazy(__v: _root_.scala.Boolean): FieldOptions = copy(`lazy` = Option(__v)) + def withLazy(__v: _root_.scala.Boolean): FieldOptions = copy(`lazy` = _root_.scala.Option(__v)) def getUnverifiedLazy: _root_.scala.Boolean = unverifiedLazy.getOrElse(false) def clearUnverifiedLazy: FieldOptions = copy(unverifiedLazy = _root_.scala.None) - def withUnverifiedLazy(__v: _root_.scala.Boolean): FieldOptions = copy(unverifiedLazy = Option(__v)) + def withUnverifiedLazy(__v: _root_.scala.Boolean): FieldOptions = copy(unverifiedLazy = _root_.scala.Option(__v)) def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: FieldOptions = copy(deprecated = _root_.scala.None) - def withDeprecated(__v: _root_.scala.Boolean): FieldOptions = copy(deprecated = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): FieldOptions = copy(deprecated = _root_.scala.Option(__v)) def getWeak: _root_.scala.Boolean = weak.getOrElse(false) def clearWeak: FieldOptions = copy(weak = _root_.scala.None) - def withWeak(__v: _root_.scala.Boolean): FieldOptions = copy(weak = Option(__v)) + def withWeak(__v: _root_.scala.Boolean): FieldOptions = copy(weak = _root_.scala.Option(__v)) def getDebugRedact: _root_.scala.Boolean = debugRedact.getOrElse(false) def clearDebugRedact: FieldOptions = copy(debugRedact = _root_.scala.None) - def withDebugRedact(__v: _root_.scala.Boolean): FieldOptions = copy(debugRedact = Option(__v)) + def withDebugRedact(__v: _root_.scala.Boolean): FieldOptions = copy(debugRedact = _root_.scala.Option(__v)) 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 = Option(__v)) + 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 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) @@ -267,10 +267,10 @@ final case class FieldOptions( def withEditionDefaults(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.EditionDefault]): FieldOptions = copy(editionDefaults = __v) def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: FieldOptions = copy(features = _root_.scala.None) - def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FieldOptions = copy(features = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FieldOptions = copy(features = _root_.scala.Option(__v)) 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 = Option(__v)) + 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 addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): FieldOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): FieldOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) @@ -786,10 +786,10 @@ object FieldOptions extends scalapb.GeneratedMessageCompanion[com.google.protobu } def getEdition: com.google.protobuf.descriptor.Edition = edition.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearEdition: EditionDefault = copy(edition = _root_.scala.None) - def withEdition(__v: com.google.protobuf.descriptor.Edition): EditionDefault = copy(edition = Option(__v)) + def withEdition(__v: com.google.protobuf.descriptor.Edition): EditionDefault = copy(edition = _root_.scala.Option(__v)) def getValue: _root_.scala.Predef.String = value.getOrElse("") def clearValue: EditionDefault = copy(value = _root_.scala.None) - def withValue(__v: _root_.scala.Predef.String): EditionDefault = copy(value = Option(__v)) + def withValue(__v: _root_.scala.Predef.String): EditionDefault = copy(value = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { @@ -956,16 +956,16 @@ object FieldOptions extends scalapb.GeneratedMessageCompanion[com.google.protobu } def getEditionIntroduced: com.google.protobuf.descriptor.Edition = editionIntroduced.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearEditionIntroduced: FeatureSupport = copy(editionIntroduced = _root_.scala.None) - def withEditionIntroduced(__v: com.google.protobuf.descriptor.Edition): FeatureSupport = copy(editionIntroduced = Option(__v)) + def withEditionIntroduced(__v: com.google.protobuf.descriptor.Edition): FeatureSupport = copy(editionIntroduced = _root_.scala.Option(__v)) def getEditionDeprecated: com.google.protobuf.descriptor.Edition = editionDeprecated.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearEditionDeprecated: FeatureSupport = copy(editionDeprecated = _root_.scala.None) - def withEditionDeprecated(__v: com.google.protobuf.descriptor.Edition): FeatureSupport = copy(editionDeprecated = Option(__v)) + def withEditionDeprecated(__v: com.google.protobuf.descriptor.Edition): FeatureSupport = copy(editionDeprecated = _root_.scala.Option(__v)) def getDeprecationWarning: _root_.scala.Predef.String = deprecationWarning.getOrElse("") def clearDeprecationWarning: FeatureSupport = copy(deprecationWarning = _root_.scala.None) - def withDeprecationWarning(__v: _root_.scala.Predef.String): FeatureSupport = copy(deprecationWarning = Option(__v)) + def withDeprecationWarning(__v: _root_.scala.Predef.String): FeatureSupport = copy(deprecationWarning = _root_.scala.Option(__v)) def getEditionRemoved: com.google.protobuf.descriptor.Edition = editionRemoved.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearEditionRemoved: FeatureSupport = copy(editionRemoved = _root_.scala.None) - def withEditionRemoved(__v: com.google.protobuf.descriptor.Edition): FeatureSupport = copy(editionRemoved = Option(__v)) + def withEditionRemoved(__v: com.google.protobuf.descriptor.Edition): FeatureSupport = copy(editionRemoved = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 63676b6be..3681fec1b 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 @@ -185,10 +185,10 @@ final case class FileDescriptorProto( } def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: FileDescriptorProto = copy(name = _root_.scala.None) - def withName(__v: _root_.scala.Predef.String): FileDescriptorProto = copy(name = Option(__v)) + def withName(__v: _root_.scala.Predef.String): FileDescriptorProto = copy(name = _root_.scala.Option(__v)) 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` = Option(__v)) + def withPackage(__v: _root_.scala.Predef.String): FileDescriptorProto = copy(`package` = _root_.scala.Option(__v)) def clearDependency = copy(dependency = _root_.scala.Seq.empty) def addDependency(__vs: _root_.scala.Predef.String *): FileDescriptorProto = addAllDependency(__vs) def addAllDependency(__vs: Iterable[_root_.scala.Predef.String]): FileDescriptorProto = copy(dependency = dependency ++ __vs) @@ -219,16 +219,16 @@ final case class FileDescriptorProto( def withExtension(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto]): FileDescriptorProto = copy(extension = __v) def getOptions: com.google.protobuf.descriptor.FileOptions = options.getOrElse(com.google.protobuf.descriptor.FileOptions.defaultInstance) def clearOptions: FileDescriptorProto = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.FileOptions): FileDescriptorProto = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.FileOptions): FileDescriptorProto = copy(options = _root_.scala.Option(__v)) def getSourceCodeInfo: com.google.protobuf.descriptor.SourceCodeInfo = sourceCodeInfo.getOrElse(com.google.protobuf.descriptor.SourceCodeInfo.defaultInstance) def clearSourceCodeInfo: FileDescriptorProto = copy(sourceCodeInfo = _root_.scala.None) - def withSourceCodeInfo(__v: com.google.protobuf.descriptor.SourceCodeInfo): FileDescriptorProto = copy(sourceCodeInfo = Option(__v)) + def withSourceCodeInfo(__v: com.google.protobuf.descriptor.SourceCodeInfo): FileDescriptorProto = copy(sourceCodeInfo = _root_.scala.Option(__v)) def getSyntax: _root_.scala.Predef.String = syntax.getOrElse("") def clearSyntax: FileDescriptorProto = copy(syntax = _root_.scala.None) - def withSyntax(__v: _root_.scala.Predef.String): FileDescriptorProto = copy(syntax = Option(__v)) + def withSyntax(__v: _root_.scala.Predef.String): FileDescriptorProto = copy(syntax = _root_.scala.Option(__v)) def getEdition: com.google.protobuf.descriptor.Edition = edition.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearEdition: FileDescriptorProto = copy(edition = _root_.scala.None) - def withEdition(__v: com.google.protobuf.descriptor.Edition): FileDescriptorProto = copy(edition = Option(__v)) + def withEdition(__v: com.google.protobuf.descriptor.Edition): FileDescriptorProto = copy(edition = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 308b3c75d..0b6610670 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 @@ -308,64 +308,64 @@ final case class FileOptions( } def getJavaPackage: _root_.scala.Predef.String = javaPackage.getOrElse("") def clearJavaPackage: FileOptions = copy(javaPackage = _root_.scala.None) - def withJavaPackage(__v: _root_.scala.Predef.String): FileOptions = copy(javaPackage = Option(__v)) + def withJavaPackage(__v: _root_.scala.Predef.String): FileOptions = copy(javaPackage = _root_.scala.Option(__v)) def getJavaOuterClassname: _root_.scala.Predef.String = javaOuterClassname.getOrElse("") def clearJavaOuterClassname: FileOptions = copy(javaOuterClassname = _root_.scala.None) - def withJavaOuterClassname(__v: _root_.scala.Predef.String): FileOptions = copy(javaOuterClassname = Option(__v)) + def withJavaOuterClassname(__v: _root_.scala.Predef.String): FileOptions = copy(javaOuterClassname = _root_.scala.Option(__v)) def getJavaMultipleFiles: _root_.scala.Boolean = javaMultipleFiles.getOrElse(false) def clearJavaMultipleFiles: FileOptions = copy(javaMultipleFiles = _root_.scala.None) - def withJavaMultipleFiles(__v: _root_.scala.Boolean): FileOptions = copy(javaMultipleFiles = Option(__v)) + def withJavaMultipleFiles(__v: _root_.scala.Boolean): FileOptions = copy(javaMultipleFiles = _root_.scala.Option(__v)) def getJavaGenerateEqualsAndHash: _root_.scala.Boolean = javaGenerateEqualsAndHash.getOrElse(false) def clearJavaGenerateEqualsAndHash: FileOptions = copy(javaGenerateEqualsAndHash = _root_.scala.None) - def withJavaGenerateEqualsAndHash(__v: _root_.scala.Boolean): FileOptions = copy(javaGenerateEqualsAndHash = Option(__v)) + def withJavaGenerateEqualsAndHash(__v: _root_.scala.Boolean): FileOptions = copy(javaGenerateEqualsAndHash = _root_.scala.Option(__v)) def getJavaStringCheckUtf8: _root_.scala.Boolean = javaStringCheckUtf8.getOrElse(false) def clearJavaStringCheckUtf8: FileOptions = copy(javaStringCheckUtf8 = _root_.scala.None) - def withJavaStringCheckUtf8(__v: _root_.scala.Boolean): FileOptions = copy(javaStringCheckUtf8 = Option(__v)) + def withJavaStringCheckUtf8(__v: _root_.scala.Boolean): FileOptions = copy(javaStringCheckUtf8 = _root_.scala.Option(__v)) def getOptimizeFor: com.google.protobuf.descriptor.FileOptions.OptimizeMode = optimizeFor.getOrElse(com.google.protobuf.descriptor.FileOptions.OptimizeMode.SPEED) def clearOptimizeFor: FileOptions = copy(optimizeFor = _root_.scala.None) - def withOptimizeFor(__v: com.google.protobuf.descriptor.FileOptions.OptimizeMode): FileOptions = copy(optimizeFor = Option(__v)) + def withOptimizeFor(__v: com.google.protobuf.descriptor.FileOptions.OptimizeMode): FileOptions = copy(optimizeFor = _root_.scala.Option(__v)) def getGoPackage: _root_.scala.Predef.String = goPackage.getOrElse("") def clearGoPackage: FileOptions = copy(goPackage = _root_.scala.None) - def withGoPackage(__v: _root_.scala.Predef.String): FileOptions = copy(goPackage = Option(__v)) + def withGoPackage(__v: _root_.scala.Predef.String): FileOptions = copy(goPackage = _root_.scala.Option(__v)) def getCcGenericServices: _root_.scala.Boolean = ccGenericServices.getOrElse(false) def clearCcGenericServices: FileOptions = copy(ccGenericServices = _root_.scala.None) - def withCcGenericServices(__v: _root_.scala.Boolean): FileOptions = copy(ccGenericServices = Option(__v)) + def withCcGenericServices(__v: _root_.scala.Boolean): FileOptions = copy(ccGenericServices = _root_.scala.Option(__v)) def getJavaGenericServices: _root_.scala.Boolean = javaGenericServices.getOrElse(false) def clearJavaGenericServices: FileOptions = copy(javaGenericServices = _root_.scala.None) - def withJavaGenericServices(__v: _root_.scala.Boolean): FileOptions = copy(javaGenericServices = Option(__v)) + def withJavaGenericServices(__v: _root_.scala.Boolean): FileOptions = copy(javaGenericServices = _root_.scala.Option(__v)) def getPyGenericServices: _root_.scala.Boolean = pyGenericServices.getOrElse(false) def clearPyGenericServices: FileOptions = copy(pyGenericServices = _root_.scala.None) - def withPyGenericServices(__v: _root_.scala.Boolean): FileOptions = copy(pyGenericServices = Option(__v)) + def withPyGenericServices(__v: _root_.scala.Boolean): FileOptions = copy(pyGenericServices = _root_.scala.Option(__v)) def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: FileOptions = copy(deprecated = _root_.scala.None) - def withDeprecated(__v: _root_.scala.Boolean): FileOptions = copy(deprecated = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): FileOptions = copy(deprecated = _root_.scala.Option(__v)) def getCcEnableArenas: _root_.scala.Boolean = ccEnableArenas.getOrElse(true) def clearCcEnableArenas: FileOptions = copy(ccEnableArenas = _root_.scala.None) - def withCcEnableArenas(__v: _root_.scala.Boolean): FileOptions = copy(ccEnableArenas = Option(__v)) + def withCcEnableArenas(__v: _root_.scala.Boolean): FileOptions = copy(ccEnableArenas = _root_.scala.Option(__v)) def getObjcClassPrefix: _root_.scala.Predef.String = objcClassPrefix.getOrElse("") def clearObjcClassPrefix: FileOptions = copy(objcClassPrefix = _root_.scala.None) - def withObjcClassPrefix(__v: _root_.scala.Predef.String): FileOptions = copy(objcClassPrefix = Option(__v)) + def withObjcClassPrefix(__v: _root_.scala.Predef.String): FileOptions = copy(objcClassPrefix = _root_.scala.Option(__v)) def getCsharpNamespace: _root_.scala.Predef.String = csharpNamespace.getOrElse("") def clearCsharpNamespace: FileOptions = copy(csharpNamespace = _root_.scala.None) - def withCsharpNamespace(__v: _root_.scala.Predef.String): FileOptions = copy(csharpNamespace = Option(__v)) + def withCsharpNamespace(__v: _root_.scala.Predef.String): FileOptions = copy(csharpNamespace = _root_.scala.Option(__v)) def getSwiftPrefix: _root_.scala.Predef.String = swiftPrefix.getOrElse("") def clearSwiftPrefix: FileOptions = copy(swiftPrefix = _root_.scala.None) - def withSwiftPrefix(__v: _root_.scala.Predef.String): FileOptions = copy(swiftPrefix = Option(__v)) + def withSwiftPrefix(__v: _root_.scala.Predef.String): FileOptions = copy(swiftPrefix = _root_.scala.Option(__v)) def getPhpClassPrefix: _root_.scala.Predef.String = phpClassPrefix.getOrElse("") def clearPhpClassPrefix: FileOptions = copy(phpClassPrefix = _root_.scala.None) - def withPhpClassPrefix(__v: _root_.scala.Predef.String): FileOptions = copy(phpClassPrefix = Option(__v)) + def withPhpClassPrefix(__v: _root_.scala.Predef.String): FileOptions = copy(phpClassPrefix = _root_.scala.Option(__v)) def getPhpNamespace: _root_.scala.Predef.String = phpNamespace.getOrElse("") def clearPhpNamespace: FileOptions = copy(phpNamespace = _root_.scala.None) - def withPhpNamespace(__v: _root_.scala.Predef.String): FileOptions = copy(phpNamespace = Option(__v)) + def withPhpNamespace(__v: _root_.scala.Predef.String): FileOptions = copy(phpNamespace = _root_.scala.Option(__v)) def getPhpMetadataNamespace: _root_.scala.Predef.String = phpMetadataNamespace.getOrElse("") def clearPhpMetadataNamespace: FileOptions = copy(phpMetadataNamespace = _root_.scala.None) - def withPhpMetadataNamespace(__v: _root_.scala.Predef.String): FileOptions = copy(phpMetadataNamespace = Option(__v)) + def withPhpMetadataNamespace(__v: _root_.scala.Predef.String): FileOptions = copy(phpMetadataNamespace = _root_.scala.Option(__v)) def getRubyPackage: _root_.scala.Predef.String = rubyPackage.getOrElse("") def clearRubyPackage: FileOptions = copy(rubyPackage = _root_.scala.None) - def withRubyPackage(__v: _root_.scala.Predef.String): FileOptions = copy(rubyPackage = Option(__v)) + def withRubyPackage(__v: _root_.scala.Predef.String): FileOptions = copy(rubyPackage = _root_.scala.Option(__v)) 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 = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FileOptions = copy(features = _root_.scala.Option(__v)) def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.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) 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 eb5f33379..8b2d58982 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 @@ -213,16 +213,16 @@ object GeneratedCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.pr def withPath(__v: _root_.scala.Seq[_root_.scala.Int]): Annotation = copy(path = __v) def getSourceFile: _root_.scala.Predef.String = sourceFile.getOrElse("") def clearSourceFile: Annotation = copy(sourceFile = _root_.scala.None) - def withSourceFile(__v: _root_.scala.Predef.String): Annotation = copy(sourceFile = Option(__v)) + def withSourceFile(__v: _root_.scala.Predef.String): Annotation = copy(sourceFile = _root_.scala.Option(__v)) def getBegin: _root_.scala.Int = begin.getOrElse(0) def clearBegin: Annotation = copy(begin = _root_.scala.None) - def withBegin(__v: _root_.scala.Int): Annotation = copy(begin = Option(__v)) + def withBegin(__v: _root_.scala.Int): Annotation = copy(begin = _root_.scala.Option(__v)) def getEnd: _root_.scala.Int = end.getOrElse(0) def clearEnd: Annotation = copy(end = _root_.scala.None) - def withEnd(__v: _root_.scala.Int): Annotation = copy(end = Option(__v)) + def withEnd(__v: _root_.scala.Int): Annotation = copy(end = _root_.scala.Option(__v)) def getSemantic: com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation.Semantic = semantic.getOrElse(com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation.Semantic.NONE) def clearSemantic: Annotation = copy(semantic = _root_.scala.None) - def withSemantic(__v: com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation.Semantic): Annotation = copy(semantic = Option(__v)) + def withSemantic(__v: com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation.Semantic): Annotation = copy(semantic = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 145f13e51..5d2675084 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 @@ -161,22 +161,22 @@ final case class MessageOptions( } def getMessageSetWireFormat: _root_.scala.Boolean = messageSetWireFormat.getOrElse(false) def clearMessageSetWireFormat: MessageOptions = copy(messageSetWireFormat = _root_.scala.None) - def withMessageSetWireFormat(__v: _root_.scala.Boolean): MessageOptions = copy(messageSetWireFormat = Option(__v)) + def withMessageSetWireFormat(__v: _root_.scala.Boolean): MessageOptions = copy(messageSetWireFormat = _root_.scala.Option(__v)) def getNoStandardDescriptorAccessor: _root_.scala.Boolean = noStandardDescriptorAccessor.getOrElse(false) def clearNoStandardDescriptorAccessor: MessageOptions = copy(noStandardDescriptorAccessor = _root_.scala.None) - def withNoStandardDescriptorAccessor(__v: _root_.scala.Boolean): MessageOptions = copy(noStandardDescriptorAccessor = Option(__v)) + def withNoStandardDescriptorAccessor(__v: _root_.scala.Boolean): MessageOptions = copy(noStandardDescriptorAccessor = _root_.scala.Option(__v)) def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: MessageOptions = copy(deprecated = _root_.scala.None) - def withDeprecated(__v: _root_.scala.Boolean): MessageOptions = copy(deprecated = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): MessageOptions = copy(deprecated = _root_.scala.Option(__v)) def getMapEntry: _root_.scala.Boolean = mapEntry.getOrElse(false) def clearMapEntry: MessageOptions = copy(mapEntry = _root_.scala.None) - def withMapEntry(__v: _root_.scala.Boolean): MessageOptions = copy(mapEntry = Option(__v)) + def withMapEntry(__v: _root_.scala.Boolean): MessageOptions = copy(mapEntry = _root_.scala.Option(__v)) def getDeprecatedLegacyJsonFieldConflicts: _root_.scala.Boolean = deprecatedLegacyJsonFieldConflicts.getOrElse(false) def clearDeprecatedLegacyJsonFieldConflicts: MessageOptions = copy(deprecatedLegacyJsonFieldConflicts = _root_.scala.None) - def withDeprecatedLegacyJsonFieldConflicts(__v: _root_.scala.Boolean): MessageOptions = copy(deprecatedLegacyJsonFieldConflicts = Option(__v)) + def withDeprecatedLegacyJsonFieldConflicts(__v: _root_.scala.Boolean): MessageOptions = copy(deprecatedLegacyJsonFieldConflicts = _root_.scala.Option(__v)) 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 = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): MessageOptions = copy(features = _root_.scala.Option(__v)) def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.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) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/MethodDescriptorProto.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/MethodDescriptorProto.scala index 14a7f457d..716e18f5e 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/MethodDescriptorProto.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/MethodDescriptorProto.scala @@ -94,22 +94,22 @@ final case class MethodDescriptorProto( } def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: MethodDescriptorProto = copy(name = _root_.scala.None) - def withName(__v: _root_.scala.Predef.String): MethodDescriptorProto = copy(name = Option(__v)) + def withName(__v: _root_.scala.Predef.String): MethodDescriptorProto = copy(name = _root_.scala.Option(__v)) def getInputType: _root_.scala.Predef.String = inputType.getOrElse("") def clearInputType: MethodDescriptorProto = copy(inputType = _root_.scala.None) - def withInputType(__v: _root_.scala.Predef.String): MethodDescriptorProto = copy(inputType = Option(__v)) + def withInputType(__v: _root_.scala.Predef.String): MethodDescriptorProto = copy(inputType = _root_.scala.Option(__v)) def getOutputType: _root_.scala.Predef.String = outputType.getOrElse("") def clearOutputType: MethodDescriptorProto = copy(outputType = _root_.scala.None) - def withOutputType(__v: _root_.scala.Predef.String): MethodDescriptorProto = copy(outputType = Option(__v)) + def withOutputType(__v: _root_.scala.Predef.String): MethodDescriptorProto = copy(outputType = _root_.scala.Option(__v)) def getOptions: com.google.protobuf.descriptor.MethodOptions = options.getOrElse(com.google.protobuf.descriptor.MethodOptions.defaultInstance) def clearOptions: MethodDescriptorProto = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.MethodOptions): MethodDescriptorProto = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.MethodOptions): MethodDescriptorProto = copy(options = _root_.scala.Option(__v)) def getClientStreaming: _root_.scala.Boolean = clientStreaming.getOrElse(false) def clearClientStreaming: MethodDescriptorProto = copy(clientStreaming = _root_.scala.None) - def withClientStreaming(__v: _root_.scala.Boolean): MethodDescriptorProto = copy(clientStreaming = Option(__v)) + def withClientStreaming(__v: _root_.scala.Boolean): MethodDescriptorProto = copy(clientStreaming = _root_.scala.Option(__v)) def getServerStreaming: _root_.scala.Boolean = serverStreaming.getOrElse(false) def clearServerStreaming: MethodDescriptorProto = copy(serverStreaming = _root_.scala.None) - def withServerStreaming(__v: _root_.scala.Boolean): MethodDescriptorProto = copy(serverStreaming = Option(__v)) + def withServerStreaming(__v: _root_.scala.Boolean): MethodDescriptorProto = copy(serverStreaming = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 124052189..ab01ade0b 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 @@ -78,13 +78,13 @@ final case class MethodOptions( } def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: MethodOptions = copy(deprecated = _root_.scala.None) - def withDeprecated(__v: _root_.scala.Boolean): MethodOptions = copy(deprecated = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): MethodOptions = copy(deprecated = _root_.scala.Option(__v)) def getIdempotencyLevel: com.google.protobuf.descriptor.MethodOptions.IdempotencyLevel = idempotencyLevel.getOrElse(com.google.protobuf.descriptor.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN) def clearIdempotencyLevel: MethodOptions = copy(idempotencyLevel = _root_.scala.None) - def withIdempotencyLevel(__v: com.google.protobuf.descriptor.MethodOptions.IdempotencyLevel): MethodOptions = copy(idempotencyLevel = Option(__v)) + def withIdempotencyLevel(__v: com.google.protobuf.descriptor.MethodOptions.IdempotencyLevel): MethodOptions = copy(idempotencyLevel = _root_.scala.Option(__v)) 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 = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): MethodOptions = copy(features = _root_.scala.Option(__v)) def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.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) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/OneofDescriptorProto.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/OneofDescriptorProto.scala index 29d87e7fb..66a49b713 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/OneofDescriptorProto.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/OneofDescriptorProto.scala @@ -50,10 +50,10 @@ final case class OneofDescriptorProto( } def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: OneofDescriptorProto = copy(name = _root_.scala.None) - def withName(__v: _root_.scala.Predef.String): OneofDescriptorProto = copy(name = Option(__v)) + def withName(__v: _root_.scala.Predef.String): OneofDescriptorProto = copy(name = _root_.scala.Option(__v)) def getOptions: com.google.protobuf.descriptor.OneofOptions = options.getOrElse(com.google.protobuf.descriptor.OneofOptions.defaultInstance) def clearOptions: OneofDescriptorProto = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.OneofOptions): OneofDescriptorProto = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.OneofOptions): OneofDescriptorProto = copy(options = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 b50b94c18..cc8c992f6 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 @@ -55,7 +55,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 = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): OneofOptions = copy(features = _root_.scala.Option(__v)) def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.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) 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 793000a45..dfe1fb8cf 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 @@ -61,14 +61,14 @@ 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 = Option(__v)) + def withName(__v: _root_.scala.Predef.String): ServiceDescriptorProto = copy(name = _root_.scala.Option(__v)) def clearMethod = copy(method = _root_.scala.Seq.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) def getOptions: com.google.protobuf.descriptor.ServiceOptions = options.getOrElse(com.google.protobuf.descriptor.ServiceOptions.defaultInstance) def clearOptions: ServiceDescriptorProto = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.ServiceOptions): ServiceDescriptorProto = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.ServiceOptions): ServiceDescriptorProto = copy(options = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 ee8a35ca7..8b11ce3af 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 @@ -69,10 +69,10 @@ final case class ServiceOptions( } def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: ServiceOptions = copy(features = _root_.scala.None) - def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): ServiceOptions = copy(features = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): ServiceOptions = copy(features = _root_.scala.Option(__v)) 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 = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): ServiceOptions = copy(deprecated = _root_.scala.Option(__v)) def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.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) 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 e62dbf378..44510f2d3 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 @@ -333,10 +333,10 @@ object SourceCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.proto def withSpan(__v: _root_.scala.Seq[_root_.scala.Int]): Location = copy(span = __v) def getLeadingComments: _root_.scala.Predef.String = leadingComments.getOrElse("") def clearLeadingComments: Location = copy(leadingComments = _root_.scala.None) - def withLeadingComments(__v: _root_.scala.Predef.String): Location = copy(leadingComments = Option(__v)) + def withLeadingComments(__v: _root_.scala.Predef.String): Location = copy(leadingComments = _root_.scala.Option(__v)) 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 = Option(__v)) + def withTrailingComments(__v: _root_.scala.Predef.String): Location = copy(trailingComments = _root_.scala.Option(__v)) def clearLeadingDetachedComments = copy(leadingDetachedComments = _root_.scala.Seq.empty) def addLeadingDetachedComments(__vs: _root_.scala.Predef.String *): Location = addAllLeadingDetachedComments(__vs) def addAllLeadingDetachedComments(__vs: Iterable[_root_.scala.Predef.String]): Location = copy(leadingDetachedComments = leadingDetachedComments ++ __vs) 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 6fa783930..ebe11d660 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 @@ -108,22 +108,22 @@ final case class UninterpretedOption( def withName(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption.NamePart]): UninterpretedOption = copy(name = __v) def getIdentifierValue: _root_.scala.Predef.String = identifierValue.getOrElse("") def clearIdentifierValue: UninterpretedOption = copy(identifierValue = _root_.scala.None) - def withIdentifierValue(__v: _root_.scala.Predef.String): UninterpretedOption = copy(identifierValue = Option(__v)) + def withIdentifierValue(__v: _root_.scala.Predef.String): UninterpretedOption = copy(identifierValue = _root_.scala.Option(__v)) def getPositiveIntValue: _root_.scala.Long = positiveIntValue.getOrElse(0L) def clearPositiveIntValue: UninterpretedOption = copy(positiveIntValue = _root_.scala.None) - def withPositiveIntValue(__v: _root_.scala.Long): UninterpretedOption = copy(positiveIntValue = Option(__v)) + def withPositiveIntValue(__v: _root_.scala.Long): UninterpretedOption = copy(positiveIntValue = _root_.scala.Option(__v)) def getNegativeIntValue: _root_.scala.Long = negativeIntValue.getOrElse(0L) def clearNegativeIntValue: UninterpretedOption = copy(negativeIntValue = _root_.scala.None) - def withNegativeIntValue(__v: _root_.scala.Long): UninterpretedOption = copy(negativeIntValue = Option(__v)) + def withNegativeIntValue(__v: _root_.scala.Long): UninterpretedOption = copy(negativeIntValue = _root_.scala.Option(__v)) def getDoubleValue: _root_.scala.Double = doubleValue.getOrElse(0.0) def clearDoubleValue: UninterpretedOption = copy(doubleValue = _root_.scala.None) - def withDoubleValue(__v: _root_.scala.Double): UninterpretedOption = copy(doubleValue = Option(__v)) + def withDoubleValue(__v: _root_.scala.Double): UninterpretedOption = copy(doubleValue = _root_.scala.Option(__v)) def getStringValue: _root_.com.google.protobuf.ByteString = stringValue.getOrElse(_root_.com.google.protobuf.ByteString.EMPTY) def clearStringValue: UninterpretedOption = copy(stringValue = _root_.scala.None) - def withStringValue(__v: _root_.com.google.protobuf.ByteString): UninterpretedOption = copy(stringValue = Option(__v)) + def withStringValue(__v: _root_.com.google.protobuf.ByteString): UninterpretedOption = copy(stringValue = _root_.scala.Option(__v)) def getAggregateValue: _root_.scala.Predef.String = aggregateValue.getOrElse("") def clearAggregateValue: UninterpretedOption = copy(aggregateValue = _root_.scala.None) - def withAggregateValue(__v: _root_.scala.Predef.String): UninterpretedOption = copy(aggregateValue = Option(__v)) + def withAggregateValue(__v: _root_.scala.Predef.String): UninterpretedOption = copy(aggregateValue = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/struct/Struct.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/struct/Struct.scala index a5daa9def..655c21937 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/struct/Struct.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/struct/Struct.scala @@ -171,7 +171,7 @@ object Struct extends scalapb.GeneratedMessageCompanion[com.google.protobuf.stru def withKey(__v: _root_.scala.Predef.String): FieldsEntry = copy(key = __v) def getValue: com.google.protobuf.struct.Value = value.getOrElse(com.google.protobuf.struct.Value.defaultInstance) def clearValue: FieldsEntry = copy(value = _root_.scala.None) - def withValue(__v: com.google.protobuf.struct.Value): FieldsEntry = copy(value = Option(__v)) + def withValue(__v: com.google.protobuf.struct.Value): FieldsEntry = copy(value = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 d7fe3e6ad..9c075023a 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 @@ -127,7 +127,7 @@ final case class Enum( def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Enum = copy(options = __v) def getSourceContext: com.google.protobuf.source_context.SourceContext = sourceContext.getOrElse(com.google.protobuf.source_context.SourceContext.defaultInstance) def clearSourceContext: Enum = copy(sourceContext = _root_.scala.None) - def withSourceContext(__v: com.google.protobuf.source_context.SourceContext): Enum = copy(sourceContext = Option(__v)) + def withSourceContext(__v: com.google.protobuf.source_context.SourceContext): Enum = copy(sourceContext = _root_.scala.Option(__v)) def withSyntax(__v: com.google.protobuf.`type`.Syntax): Enum = copy(syntax = __v) def withEdition(__v: _root_.scala.Predef.String): Enum = copy(edition = __v) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) diff --git a/scalapb-runtime/src/main/js-native/com/google/protobuf/type/OptionProto.scala b/scalapb-runtime/src/main/js-native/com/google/protobuf/type/OptionProto.scala index 715009209..645b3944e 100644 --- a/scalapb-runtime/src/main/js-native/com/google/protobuf/type/OptionProto.scala +++ b/scalapb-runtime/src/main/js-native/com/google/protobuf/type/OptionProto.scala @@ -68,7 +68,7 @@ final case class OptionProto( def withName(__v: _root_.scala.Predef.String): OptionProto = copy(name = __v) def getValue: com.google.protobuf.any.Any = value.getOrElse(com.google.protobuf.any.Any.defaultInstance) def clearValue: OptionProto = copy(value = _root_.scala.None) - def withValue(__v: com.google.protobuf.any.Any): OptionProto = copy(value = Option(__v)) + def withValue(__v: com.google.protobuf.any.Any): OptionProto = copy(value = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 a8ad05dea..0d700b470 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 @@ -142,7 +142,7 @@ final case class Type( def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Type = copy(options = __v) def getSourceContext: com.google.protobuf.source_context.SourceContext = sourceContext.getOrElse(com.google.protobuf.source_context.SourceContext.defaultInstance) def clearSourceContext: Type = copy(sourceContext = _root_.scala.None) - def withSourceContext(__v: com.google.protobuf.source_context.SourceContext): Type = copy(sourceContext = Option(__v)) + def withSourceContext(__v: com.google.protobuf.source_context.SourceContext): Type = copy(sourceContext = _root_.scala.Option(__v)) def withSyntax(__v: com.google.protobuf.`type`.Syntax): Type = copy(syntax = __v) def withEdition(__v: _root_.scala.Predef.String): Type = copy(edition = __v) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) diff --git a/scalapb-runtime/src/main/scala/scalapb/options/Collection.scala b/scalapb-runtime/src/main/scala/scalapb/options/Collection.scala index 05e9881fd..5982d0185 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/Collection.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/Collection.scala @@ -68,13 +68,13 @@ final case class Collection( } def getType: _root_.scala.Predef.String = `type`.getOrElse("") def clearType: Collection = copy(`type` = _root_.scala.None) - def withType(__v: _root_.scala.Predef.String): Collection = copy(`type` = Option(__v)) + def withType(__v: _root_.scala.Predef.String): Collection = copy(`type` = _root_.scala.Option(__v)) def getNonEmpty: _root_.scala.Boolean = nonEmpty.getOrElse(false) def clearNonEmpty: Collection = copy(nonEmpty = _root_.scala.None) - def withNonEmpty(__v: _root_.scala.Boolean): Collection = copy(nonEmpty = Option(__v)) + def withNonEmpty(__v: _root_.scala.Boolean): Collection = copy(nonEmpty = _root_.scala.Option(__v)) def getAdapter: _root_.scala.Predef.String = adapter.getOrElse("") def clearAdapter: Collection = copy(adapter = _root_.scala.None) - def withAdapter(__v: _root_.scala.Predef.String): Collection = copy(adapter = Option(__v)) + def withAdapter(__v: _root_.scala.Predef.String): Collection = copy(adapter = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/scala/scalapb/options/EnumOptions.scala b/scalapb-runtime/src/main/scala/scalapb/options/EnumOptions.scala index 9a8f47a0f..10163ccde 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/EnumOptions.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/EnumOptions.scala @@ -104,7 +104,7 @@ final case class EnumOptions( 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` = Option(__v)) + def withType(__v: _root_.scala.Predef.String): EnumOptions = copy(`type` = _root_.scala.Option(__v)) def clearBaseAnnotations = copy(baseAnnotations = _root_.scala.Seq.empty) def addBaseAnnotations(__vs: _root_.scala.Predef.String *): EnumOptions = addAllBaseAnnotations(__vs) def addAllBaseAnnotations(__vs: Iterable[_root_.scala.Predef.String]): EnumOptions = copy(baseAnnotations = baseAnnotations ++ __vs) diff --git a/scalapb-runtime/src/main/scala/scalapb/options/EnumValueOptions.scala b/scalapb-runtime/src/main/scala/scalapb/options/EnumValueOptions.scala index f8abd6660..8eef266ef 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/EnumValueOptions.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/EnumValueOptions.scala @@ -66,7 +66,7 @@ final case class EnumValueOptions( 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 = Option(__v)) + def withScalaName(__v: _root_.scala.Predef.String): EnumValueOptions = copy(scalaName = _root_.scala.Option(__v)) def clearAnnotations = copy(annotations = _root_.scala.Seq.empty) def addAnnotations(__vs: _root_.scala.Predef.String *): EnumValueOptions = addAllAnnotations(__vs) def addAllAnnotations(__vs: Iterable[_root_.scala.Predef.String]): EnumValueOptions = copy(annotations = annotations ++ __vs) diff --git a/scalapb-runtime/src/main/scala/scalapb/options/FieldOptions.scala b/scalapb-runtime/src/main/scala/scalapb/options/FieldOptions.scala index 5c47947c1..f56cd1f7f 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/FieldOptions.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/FieldOptions.scala @@ -152,38 +152,38 @@ final case class FieldOptions( } def getType: _root_.scala.Predef.String = `type`.getOrElse("") def clearType: FieldOptions = copy(`type` = _root_.scala.None) - def withType(__v: _root_.scala.Predef.String): FieldOptions = copy(`type` = Option(__v)) + def withType(__v: _root_.scala.Predef.String): FieldOptions = copy(`type` = _root_.scala.Option(__v)) def getScalaName: _root_.scala.Predef.String = scalaName.getOrElse("") def clearScalaName: FieldOptions = copy(scalaName = _root_.scala.None) - def withScalaName(__v: _root_.scala.Predef.String): FieldOptions = copy(scalaName = Option(__v)) + def withScalaName(__v: _root_.scala.Predef.String): FieldOptions = copy(scalaName = _root_.scala.Option(__v)) def getCollectionType: _root_.scala.Predef.String = collectionType.getOrElse("") def clearCollectionType: FieldOptions = copy(collectionType = _root_.scala.None) - def withCollectionType(__v: _root_.scala.Predef.String): FieldOptions = copy(collectionType = Option(__v)) + def withCollectionType(__v: _root_.scala.Predef.String): FieldOptions = copy(collectionType = _root_.scala.Option(__v)) def getCollection: scalapb.options.Collection = collection.getOrElse(scalapb.options.Collection.defaultInstance) def clearCollection: FieldOptions = copy(collection = _root_.scala.None) - def withCollection(__v: scalapb.options.Collection): FieldOptions = copy(collection = Option(__v)) + def withCollection(__v: scalapb.options.Collection): FieldOptions = copy(collection = _root_.scala.Option(__v)) def getKeyType: _root_.scala.Predef.String = keyType.getOrElse("") def clearKeyType: FieldOptions = copy(keyType = _root_.scala.None) - def withKeyType(__v: _root_.scala.Predef.String): FieldOptions = copy(keyType = Option(__v)) + def withKeyType(__v: _root_.scala.Predef.String): FieldOptions = copy(keyType = _root_.scala.Option(__v)) 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 = Option(__v)) + def withValueType(__v: _root_.scala.Predef.String): FieldOptions = copy(valueType = _root_.scala.Option(__v)) def clearAnnotations = copy(annotations = _root_.scala.Seq.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) def getMapType: _root_.scala.Predef.String = mapType.getOrElse("") def clearMapType: FieldOptions = copy(mapType = _root_.scala.None) - def withMapType(__v: _root_.scala.Predef.String): FieldOptions = copy(mapType = Option(__v)) + def withMapType(__v: _root_.scala.Predef.String): FieldOptions = copy(mapType = _root_.scala.Option(__v)) def getNoDefaultValueInConstructor: _root_.scala.Boolean = noDefaultValueInConstructor.getOrElse(false) def clearNoDefaultValueInConstructor: FieldOptions = copy(noDefaultValueInConstructor = _root_.scala.None) - def withNoDefaultValueInConstructor(__v: _root_.scala.Boolean): FieldOptions = copy(noDefaultValueInConstructor = Option(__v)) + def withNoDefaultValueInConstructor(__v: _root_.scala.Boolean): FieldOptions = copy(noDefaultValueInConstructor = _root_.scala.Option(__v)) def getNoBox: _root_.scala.Boolean = noBox.getOrElse(false) def clearNoBox: FieldOptions = copy(noBox = _root_.scala.None) - def withNoBox(__v: _root_.scala.Boolean): FieldOptions = copy(noBox = Option(__v)) + def withNoBox(__v: _root_.scala.Boolean): FieldOptions = copy(noBox = _root_.scala.Option(__v)) def getRequired: _root_.scala.Boolean = required.getOrElse(false) def clearRequired: FieldOptions = copy(required = _root_.scala.None) - def withRequired(__v: _root_.scala.Boolean): FieldOptions = copy(required = Option(__v)) + def withRequired(__v: _root_.scala.Boolean): FieldOptions = copy(required = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/scala/scalapb/options/FieldTransformation.scala b/scalapb-runtime/src/main/scala/scalapb/options/FieldTransformation.scala index 39f2963bd..6f18204d5 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/FieldTransformation.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/FieldTransformation.scala @@ -59,13 +59,13 @@ final case class FieldTransformation( } def getWhen: com.google.protobuf.descriptor.FieldDescriptorProto = when.getOrElse(com.google.protobuf.descriptor.FieldDescriptorProto.defaultInstance) def clearWhen: FieldTransformation = copy(when = _root_.scala.None) - def withWhen(__v: com.google.protobuf.descriptor.FieldDescriptorProto): FieldTransformation = copy(when = Option(__v)) + def withWhen(__v: com.google.protobuf.descriptor.FieldDescriptorProto): FieldTransformation = copy(when = _root_.scala.Option(__v)) def getMatchType: scalapb.options.MatchType = matchType.getOrElse(scalapb.options.MatchType.CONTAINS) def clearMatchType: FieldTransformation = copy(matchType = _root_.scala.None) - def withMatchType(__v: scalapb.options.MatchType): FieldTransformation = copy(matchType = Option(__v)) + def withMatchType(__v: scalapb.options.MatchType): FieldTransformation = copy(matchType = _root_.scala.Option(__v)) def getSet: com.google.protobuf.descriptor.FieldOptions = set.getOrElse(com.google.protobuf.descriptor.FieldOptions.defaultInstance) def clearSet: FieldTransformation = copy(set = _root_.scala.None) - def withSet(__v: com.google.protobuf.descriptor.FieldOptions): FieldTransformation = copy(set = Option(__v)) + def withSet(__v: com.google.protobuf.descriptor.FieldOptions): FieldTransformation = copy(set = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/scala/scalapb/options/MessageOptions.scala b/scalapb-runtime/src/main/scala/scalapb/options/MessageOptions.scala index fb94414bb..970763b92 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/MessageOptions.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/MessageOptions.scala @@ -188,7 +188,7 @@ final case class MessageOptions( 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` = Option(__v)) + def withType(__v: _root_.scala.Predef.String): MessageOptions = copy(`type` = _root_.scala.Option(__v)) def clearCompanionAnnotations = copy(companionAnnotations = _root_.scala.Seq.empty) def addCompanionAnnotations(__vs: _root_.scala.Predef.String *): MessageOptions = addAllCompanionAnnotations(__vs) def addAllCompanionAnnotations(__vs: Iterable[_root_.scala.Predef.String]): MessageOptions = copy(companionAnnotations = companionAnnotations ++ __vs) @@ -199,14 +199,14 @@ final case class MessageOptions( 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 = Option(__v)) + def withNoBox(__v: _root_.scala.Boolean): MessageOptions = copy(noBox = _root_.scala.Option(__v)) def clearUnknownFieldsAnnotations = copy(unknownFieldsAnnotations = _root_.scala.Seq.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 = Option(__v)) + def withNoDefaultValuesInConstructor(__v: _root_.scala.Boolean): MessageOptions = copy(noDefaultValuesInConstructor = _root_.scala.Option(__v)) def clearSealedOneofCompanionExtends = copy(sealedOneofCompanionExtends = _root_.scala.Seq.empty) def addSealedOneofCompanionExtends(__vs: _root_.scala.Predef.String *): MessageOptions = addAllSealedOneofCompanionExtends(__vs) def addAllSealedOneofCompanionExtends(__vs: Iterable[_root_.scala.Predef.String]): MessageOptions = copy(sealedOneofCompanionExtends = sealedOneofCompanionExtends ++ __vs) diff --git a/scalapb-runtime/src/main/scala/scalapb/options/OneofOptions.scala b/scalapb-runtime/src/main/scala/scalapb/options/OneofOptions.scala index 40b5c4562..8d5cab264 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/OneofOptions.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/OneofOptions.scala @@ -55,7 +55,7 @@ final case class OneofOptions( def withExtends(__v: _root_.scala.Seq[_root_.scala.Predef.String]): OneofOptions = copy(`extends` = __v) def getScalaName: _root_.scala.Predef.String = scalaName.getOrElse("") def clearScalaName: OneofOptions = copy(scalaName = _root_.scala.None) - def withScalaName(__v: _root_.scala.Predef.String): OneofOptions = copy(scalaName = Option(__v)) + def withScalaName(__v: _root_.scala.Predef.String): OneofOptions = copy(scalaName = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/scala/scalapb/options/PreprocessorOutput.scala b/scalapb-runtime/src/main/scala/scalapb/options/PreprocessorOutput.scala index a3d7dee06..d017da76a 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/PreprocessorOutput.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/PreprocessorOutput.scala @@ -153,10 +153,10 @@ object PreprocessorOutput extends scalapb.GeneratedMessageCompanion[scalapb.opti } def getKey: _root_.scala.Predef.String = key.getOrElse("") def clearKey: OptionsByFileEntry = copy(key = _root_.scala.None) - def withKey(__v: _root_.scala.Predef.String): OptionsByFileEntry = copy(key = Option(__v)) + def withKey(__v: _root_.scala.Predef.String): OptionsByFileEntry = copy(key = _root_.scala.Option(__v)) def getValue: scalapb.options.ScalaPbOptions = value.getOrElse(scalapb.options.ScalaPbOptions.defaultInstance) def clearValue: OptionsByFileEntry = copy(value = _root_.scala.None) - def withValue(__v: scalapb.options.ScalaPbOptions): OptionsByFileEntry = copy(value = Option(__v)) + def withValue(__v: scalapb.options.ScalaPbOptions): OptionsByFileEntry = copy(value = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/scala/scalapb/options/ScalaPbOptions.scala b/scalapb-runtime/src/main/scala/scalapb/options/ScalaPbOptions.scala index c26d2a617..73e99a209 100644 --- a/scalapb-runtime/src/main/scala/scalapb/options/ScalaPbOptions.scala +++ b/scalapb-runtime/src/main/scala/scalapb/options/ScalaPbOptions.scala @@ -390,10 +390,10 @@ final case class ScalaPbOptions( } def getPackageName: _root_.scala.Predef.String = packageName.getOrElse("") def clearPackageName: ScalaPbOptions = copy(packageName = _root_.scala.None) - def withPackageName(__v: _root_.scala.Predef.String): ScalaPbOptions = copy(packageName = Option(__v)) + def withPackageName(__v: _root_.scala.Predef.String): ScalaPbOptions = copy(packageName = _root_.scala.Option(__v)) 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 = Option(__v)) + def withFlatPackage(__v: _root_.scala.Boolean): ScalaPbOptions = copy(flatPackage = _root_.scala.Option(__v)) def clearImport = copy(`import` = _root_.scala.Seq.empty) def addImport(__vs: _root_.scala.Predef.String *): ScalaPbOptions = addAllImport(__vs) def addAllImport(__vs: Iterable[_root_.scala.Predef.String]): ScalaPbOptions = copy(`import` = `import` ++ __vs) @@ -404,49 +404,49 @@ final case class ScalaPbOptions( def withPreamble(__v: _root_.scala.Seq[_root_.scala.Predef.String]): ScalaPbOptions = copy(preamble = __v) def getSingleFile: _root_.scala.Boolean = singleFile.getOrElse(false) def clearSingleFile: ScalaPbOptions = copy(singleFile = _root_.scala.None) - def withSingleFile(__v: _root_.scala.Boolean): ScalaPbOptions = copy(singleFile = Option(__v)) + def withSingleFile(__v: _root_.scala.Boolean): ScalaPbOptions = copy(singleFile = _root_.scala.Option(__v)) def getNoPrimitiveWrappers: _root_.scala.Boolean = noPrimitiveWrappers.getOrElse(false) def clearNoPrimitiveWrappers: ScalaPbOptions = copy(noPrimitiveWrappers = _root_.scala.None) - def withNoPrimitiveWrappers(__v: _root_.scala.Boolean): ScalaPbOptions = copy(noPrimitiveWrappers = Option(__v)) + def withNoPrimitiveWrappers(__v: _root_.scala.Boolean): ScalaPbOptions = copy(noPrimitiveWrappers = _root_.scala.Option(__v)) def getPrimitiveWrappers: _root_.scala.Boolean = primitiveWrappers.getOrElse(false) def clearPrimitiveWrappers: ScalaPbOptions = copy(primitiveWrappers = _root_.scala.None) - def withPrimitiveWrappers(__v: _root_.scala.Boolean): ScalaPbOptions = copy(primitiveWrappers = Option(__v)) + def withPrimitiveWrappers(__v: _root_.scala.Boolean): ScalaPbOptions = copy(primitiveWrappers = _root_.scala.Option(__v)) def getCollectionType: _root_.scala.Predef.String = collectionType.getOrElse("") def clearCollectionType: ScalaPbOptions = copy(collectionType = _root_.scala.None) - def withCollectionType(__v: _root_.scala.Predef.String): ScalaPbOptions = copy(collectionType = Option(__v)) + def withCollectionType(__v: _root_.scala.Predef.String): ScalaPbOptions = copy(collectionType = _root_.scala.Option(__v)) def getPreserveUnknownFields: _root_.scala.Boolean = preserveUnknownFields.getOrElse(true) def clearPreserveUnknownFields: ScalaPbOptions = copy(preserveUnknownFields = _root_.scala.None) - def withPreserveUnknownFields(__v: _root_.scala.Boolean): ScalaPbOptions = copy(preserveUnknownFields = Option(__v)) + def withPreserveUnknownFields(__v: _root_.scala.Boolean): ScalaPbOptions = copy(preserveUnknownFields = _root_.scala.Option(__v)) def getObjectName: _root_.scala.Predef.String = objectName.getOrElse("") def clearObjectName: ScalaPbOptions = copy(objectName = _root_.scala.None) - def withObjectName(__v: _root_.scala.Predef.String): ScalaPbOptions = copy(objectName = Option(__v)) + def withObjectName(__v: _root_.scala.Predef.String): ScalaPbOptions = copy(objectName = _root_.scala.Option(__v)) def getScope: scalapb.options.ScalaPbOptions.OptionsScope = scope.getOrElse(scalapb.options.ScalaPbOptions.OptionsScope.FILE) def clearScope: ScalaPbOptions = copy(scope = _root_.scala.None) - def withScope(__v: scalapb.options.ScalaPbOptions.OptionsScope): ScalaPbOptions = copy(scope = Option(__v)) + def withScope(__v: scalapb.options.ScalaPbOptions.OptionsScope): ScalaPbOptions = copy(scope = _root_.scala.Option(__v)) def getLenses: _root_.scala.Boolean = lenses.getOrElse(true) def clearLenses: ScalaPbOptions = copy(lenses = _root_.scala.None) - def withLenses(__v: _root_.scala.Boolean): ScalaPbOptions = copy(lenses = Option(__v)) + def withLenses(__v: _root_.scala.Boolean): ScalaPbOptions = copy(lenses = _root_.scala.Option(__v)) def getRetainSourceCodeInfo: _root_.scala.Boolean = retainSourceCodeInfo.getOrElse(false) def clearRetainSourceCodeInfo: ScalaPbOptions = copy(retainSourceCodeInfo = _root_.scala.None) - def withRetainSourceCodeInfo(__v: _root_.scala.Boolean): ScalaPbOptions = copy(retainSourceCodeInfo = Option(__v)) + def withRetainSourceCodeInfo(__v: _root_.scala.Boolean): ScalaPbOptions = copy(retainSourceCodeInfo = _root_.scala.Option(__v)) def getMapType: _root_.scala.Predef.String = mapType.getOrElse("") def clearMapType: ScalaPbOptions = copy(mapType = _root_.scala.None) - def withMapType(__v: _root_.scala.Predef.String): ScalaPbOptions = copy(mapType = Option(__v)) + def withMapType(__v: _root_.scala.Predef.String): ScalaPbOptions = copy(mapType = _root_.scala.Option(__v)) def getNoDefaultValuesInConstructor: _root_.scala.Boolean = noDefaultValuesInConstructor.getOrElse(false) def clearNoDefaultValuesInConstructor: ScalaPbOptions = copy(noDefaultValuesInConstructor = _root_.scala.None) - def withNoDefaultValuesInConstructor(__v: _root_.scala.Boolean): ScalaPbOptions = copy(noDefaultValuesInConstructor = Option(__v)) + def withNoDefaultValuesInConstructor(__v: _root_.scala.Boolean): ScalaPbOptions = copy(noDefaultValuesInConstructor = _root_.scala.Option(__v)) def getEnumValueNaming: scalapb.options.ScalaPbOptions.EnumValueNaming = enumValueNaming.getOrElse(scalapb.options.ScalaPbOptions.EnumValueNaming.AS_IN_PROTO) def clearEnumValueNaming: ScalaPbOptions = copy(enumValueNaming = _root_.scala.None) - def withEnumValueNaming(__v: scalapb.options.ScalaPbOptions.EnumValueNaming): ScalaPbOptions = copy(enumValueNaming = Option(__v)) + def withEnumValueNaming(__v: scalapb.options.ScalaPbOptions.EnumValueNaming): ScalaPbOptions = copy(enumValueNaming = _root_.scala.Option(__v)) def getEnumStripPrefix: _root_.scala.Boolean = enumStripPrefix.getOrElse(false) def clearEnumStripPrefix: ScalaPbOptions = copy(enumStripPrefix = _root_.scala.None) - def withEnumStripPrefix(__v: _root_.scala.Boolean): ScalaPbOptions = copy(enumStripPrefix = Option(__v)) + def withEnumStripPrefix(__v: _root_.scala.Boolean): ScalaPbOptions = copy(enumStripPrefix = _root_.scala.Option(__v)) def getBytesType: _root_.scala.Predef.String = bytesType.getOrElse("") def clearBytesType: ScalaPbOptions = copy(bytesType = _root_.scala.None) - def withBytesType(__v: _root_.scala.Predef.String): ScalaPbOptions = copy(bytesType = Option(__v)) + def withBytesType(__v: _root_.scala.Predef.String): ScalaPbOptions = copy(bytesType = _root_.scala.Option(__v)) 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 = Option(__v)) + def withJavaConversions(__v: _root_.scala.Boolean): ScalaPbOptions = copy(javaConversions = _root_.scala.Option(__v)) def clearAuxMessageOptions = copy(auxMessageOptions = _root_.scala.Seq.empty) def addAuxMessageOptions(__vs: scalapb.options.ScalaPbOptions.AuxMessageOptions *): ScalaPbOptions = addAllAuxMessageOptions(__vs) def addAllAuxMessageOptions(__vs: Iterable[scalapb.options.ScalaPbOptions.AuxMessageOptions]): ScalaPbOptions = copy(auxMessageOptions = auxMessageOptions ++ __vs) @@ -473,19 +473,19 @@ final case class ScalaPbOptions( def withFieldTransformations(__v: _root_.scala.Seq[scalapb.options.FieldTransformation]): ScalaPbOptions = copy(fieldTransformations = __v) def getIgnoreAllTransformations: _root_.scala.Boolean = ignoreAllTransformations.getOrElse(false) def clearIgnoreAllTransformations: ScalaPbOptions = copy(ignoreAllTransformations = _root_.scala.None) - def withIgnoreAllTransformations(__v: _root_.scala.Boolean): ScalaPbOptions = copy(ignoreAllTransformations = Option(__v)) + def withIgnoreAllTransformations(__v: _root_.scala.Boolean): ScalaPbOptions = copy(ignoreAllTransformations = _root_.scala.Option(__v)) def getGetters: _root_.scala.Boolean = getters.getOrElse(true) def clearGetters: ScalaPbOptions = copy(getters = _root_.scala.None) - def withGetters(__v: _root_.scala.Boolean): ScalaPbOptions = copy(getters = Option(__v)) + def withGetters(__v: _root_.scala.Boolean): ScalaPbOptions = copy(getters = _root_.scala.Option(__v)) def getScala3Sources: _root_.scala.Boolean = scala3Sources.getOrElse(false) def clearScala3Sources: ScalaPbOptions = copy(scala3Sources = _root_.scala.None) - def withScala3Sources(__v: _root_.scala.Boolean): ScalaPbOptions = copy(scala3Sources = Option(__v)) + def withScala3Sources(__v: _root_.scala.Boolean): ScalaPbOptions = copy(scala3Sources = _root_.scala.Option(__v)) def getPublicConstructorParameters: _root_.scala.Boolean = publicConstructorParameters.getOrElse(false) def clearPublicConstructorParameters: ScalaPbOptions = copy(publicConstructorParameters = _root_.scala.None) - def withPublicConstructorParameters(__v: _root_.scala.Boolean): ScalaPbOptions = copy(publicConstructorParameters = Option(__v)) + def withPublicConstructorParameters(__v: _root_.scala.Boolean): ScalaPbOptions = copy(publicConstructorParameters = _root_.scala.Option(__v)) def getTestOnlyNoJavaConversions: _root_.scala.Boolean = testOnlyNoJavaConversions.getOrElse(false) def clearTestOnlyNoJavaConversions: ScalaPbOptions = copy(testOnlyNoJavaConversions = _root_.scala.None) - def withTestOnlyNoJavaConversions(__v: _root_.scala.Boolean): ScalaPbOptions = copy(testOnlyNoJavaConversions = Option(__v)) + def withTestOnlyNoJavaConversions(__v: _root_.scala.Boolean): ScalaPbOptions = copy(testOnlyNoJavaConversions = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { @@ -941,10 +941,10 @@ object ScalaPbOptions extends scalapb.GeneratedMessageCompanion[scalapb.options. } def getTarget: _root_.scala.Predef.String = target.getOrElse("") def clearTarget: AuxMessageOptions = copy(target = _root_.scala.None) - def withTarget(__v: _root_.scala.Predef.String): AuxMessageOptions = copy(target = Option(__v)) + def withTarget(__v: _root_.scala.Predef.String): AuxMessageOptions = copy(target = _root_.scala.Option(__v)) def getOptions: scalapb.options.MessageOptions = options.getOrElse(scalapb.options.MessageOptions.defaultInstance) def clearOptions: AuxMessageOptions = copy(options = _root_.scala.None) - def withOptions(__v: scalapb.options.MessageOptions): AuxMessageOptions = copy(options = Option(__v)) + def withOptions(__v: scalapb.options.MessageOptions): AuxMessageOptions = copy(options = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { @@ -1091,10 +1091,10 @@ object ScalaPbOptions extends scalapb.GeneratedMessageCompanion[scalapb.options. } def getTarget: _root_.scala.Predef.String = target.getOrElse("") def clearTarget: AuxFieldOptions = copy(target = _root_.scala.None) - def withTarget(__v: _root_.scala.Predef.String): AuxFieldOptions = copy(target = Option(__v)) + def withTarget(__v: _root_.scala.Predef.String): AuxFieldOptions = copy(target = _root_.scala.Option(__v)) def getOptions: scalapb.options.FieldOptions = options.getOrElse(scalapb.options.FieldOptions.defaultInstance) def clearOptions: AuxFieldOptions = copy(options = _root_.scala.None) - def withOptions(__v: scalapb.options.FieldOptions): AuxFieldOptions = copy(options = Option(__v)) + def withOptions(__v: scalapb.options.FieldOptions): AuxFieldOptions = copy(options = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { @@ -1241,10 +1241,10 @@ object ScalaPbOptions extends scalapb.GeneratedMessageCompanion[scalapb.options. } def getTarget: _root_.scala.Predef.String = target.getOrElse("") def clearTarget: AuxEnumOptions = copy(target = _root_.scala.None) - def withTarget(__v: _root_.scala.Predef.String): AuxEnumOptions = copy(target = Option(__v)) + def withTarget(__v: _root_.scala.Predef.String): AuxEnumOptions = copy(target = _root_.scala.Option(__v)) def getOptions: scalapb.options.EnumOptions = options.getOrElse(scalapb.options.EnumOptions.defaultInstance) def clearOptions: AuxEnumOptions = copy(options = _root_.scala.None) - def withOptions(__v: scalapb.options.EnumOptions): AuxEnumOptions = copy(options = Option(__v)) + def withOptions(__v: scalapb.options.EnumOptions): AuxEnumOptions = copy(options = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { @@ -1391,10 +1391,10 @@ object ScalaPbOptions extends scalapb.GeneratedMessageCompanion[scalapb.options. } def getTarget: _root_.scala.Predef.String = target.getOrElse("") def clearTarget: AuxEnumValueOptions = copy(target = _root_.scala.None) - def withTarget(__v: _root_.scala.Predef.String): AuxEnumValueOptions = copy(target = Option(__v)) + def withTarget(__v: _root_.scala.Predef.String): AuxEnumValueOptions = copy(target = _root_.scala.Option(__v)) def getOptions: scalapb.options.EnumValueOptions = options.getOrElse(scalapb.options.EnumValueOptions.defaultInstance) def clearOptions: AuxEnumValueOptions = copy(options = _root_.scala.None) - def withOptions(__v: scalapb.options.EnumValueOptions): AuxEnumValueOptions = copy(options = Option(__v)) + def withOptions(__v: scalapb.options.EnumValueOptions): AuxEnumValueOptions = copy(options = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 a7c449b83..25a804577 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 @@ -170,7 +170,7 @@ final case class Api( def withVersion(__v: _root_.scala.Predef.String): Api = copy(version = __v) 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 = Option(__v)) + 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 addMixins(__vs: com.google.protobuf.api.Mixin *): Api = addAllMixins(__vs) def addAllMixins(__vs: Iterable[com.google.protobuf.api.Mixin]): Api = copy(mixins = mixins ++ __vs) 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 1af7d206a..53187ece2 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 @@ -119,7 +119,7 @@ final case class CodeGeneratorRequest( 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 = Option(__v)) + def withParameter(__v: _root_.scala.Predef.String): CodeGeneratorRequest = copy(parameter = _root_.scala.Option(__v)) def clearProtoFile = copy(protoFile = _root_.scala.Seq.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) @@ -130,7 +130,7 @@ final case class CodeGeneratorRequest( def withSourceFileDescriptors(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FileDescriptorProto]): CodeGeneratorRequest = copy(sourceFileDescriptors = __v) def getCompilerVersion: com.google.protobuf.compiler.plugin.Version = compilerVersion.getOrElse(com.google.protobuf.compiler.plugin.Version.defaultInstance) def clearCompilerVersion: CodeGeneratorRequest = copy(compilerVersion = _root_.scala.None) - def withCompilerVersion(__v: com.google.protobuf.compiler.plugin.Version): CodeGeneratorRequest = copy(compilerVersion = Option(__v)) + def withCompilerVersion(__v: com.google.protobuf.compiler.plugin.Version): CodeGeneratorRequest = copy(compilerVersion = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 4ab1adf2f..2b7d21af6 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 @@ -101,16 +101,16 @@ final case class CodeGeneratorResponse( } def getError: _root_.scala.Predef.String = error.getOrElse("") def clearError: CodeGeneratorResponse = copy(error = _root_.scala.None) - def withError(__v: _root_.scala.Predef.String): CodeGeneratorResponse = copy(error = Option(__v)) + def withError(__v: _root_.scala.Predef.String): CodeGeneratorResponse = copy(error = _root_.scala.Option(__v)) def getSupportedFeatures: _root_.scala.Long = supportedFeatures.getOrElse(0L) def clearSupportedFeatures: CodeGeneratorResponse = copy(supportedFeatures = _root_.scala.None) - def withSupportedFeatures(__v: _root_.scala.Long): CodeGeneratorResponse = copy(supportedFeatures = Option(__v)) + def withSupportedFeatures(__v: _root_.scala.Long): CodeGeneratorResponse = copy(supportedFeatures = _root_.scala.Option(__v)) def getMinimumEdition: _root_.scala.Int = minimumEdition.getOrElse(0) def clearMinimumEdition: CodeGeneratorResponse = copy(minimumEdition = _root_.scala.None) - def withMinimumEdition(__v: _root_.scala.Int): CodeGeneratorResponse = copy(minimumEdition = Option(__v)) + def withMinimumEdition(__v: _root_.scala.Int): CodeGeneratorResponse = copy(minimumEdition = _root_.scala.Option(__v)) 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 = Option(__v)) + def withMaximumEdition(__v: _root_.scala.Int): CodeGeneratorResponse = copy(maximumEdition = _root_.scala.Option(__v)) def clearFile = copy(file = _root_.scala.Seq.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) @@ -406,16 +406,16 @@ object CodeGeneratorResponse extends scalapb.GeneratedMessageCompanion[com.googl } def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: File = copy(name = _root_.scala.None) - def withName(__v: _root_.scala.Predef.String): File = copy(name = Option(__v)) + def withName(__v: _root_.scala.Predef.String): File = copy(name = _root_.scala.Option(__v)) def getInsertionPoint: _root_.scala.Predef.String = insertionPoint.getOrElse("") def clearInsertionPoint: File = copy(insertionPoint = _root_.scala.None) - def withInsertionPoint(__v: _root_.scala.Predef.String): File = copy(insertionPoint = Option(__v)) + def withInsertionPoint(__v: _root_.scala.Predef.String): File = copy(insertionPoint = _root_.scala.Option(__v)) def getContent: _root_.scala.Predef.String = content.getOrElse("") def clearContent: File = copy(content = _root_.scala.None) - def withContent(__v: _root_.scala.Predef.String): File = copy(content = Option(__v)) + def withContent(__v: _root_.scala.Predef.String): File = copy(content = _root_.scala.Option(__v)) def getGeneratedCodeInfo: com.google.protobuf.descriptor.GeneratedCodeInfo = generatedCodeInfo.getOrElse(com.google.protobuf.descriptor.GeneratedCodeInfo.defaultInstance) def clearGeneratedCodeInfo: File = copy(generatedCodeInfo = _root_.scala.None) - def withGeneratedCodeInfo(__v: com.google.protobuf.descriptor.GeneratedCodeInfo): File = copy(generatedCodeInfo = Option(__v)) + def withGeneratedCodeInfo(__v: com.google.protobuf.descriptor.GeneratedCodeInfo): File = copy(generatedCodeInfo = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/compiler/plugin/Version.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/compiler/plugin/Version.scala index 166e65ae5..2302ccf37 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/compiler/plugin/Version.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/compiler/plugin/Version.scala @@ -70,16 +70,16 @@ final case class Version( } def getMajor: _root_.scala.Int = major.getOrElse(0) def clearMajor: Version = copy(major = _root_.scala.None) - def withMajor(__v: _root_.scala.Int): Version = copy(major = Option(__v)) + def withMajor(__v: _root_.scala.Int): Version = copy(major = _root_.scala.Option(__v)) def getMinor: _root_.scala.Int = minor.getOrElse(0) def clearMinor: Version = copy(minor = _root_.scala.None) - def withMinor(__v: _root_.scala.Int): Version = copy(minor = Option(__v)) + def withMinor(__v: _root_.scala.Int): Version = copy(minor = _root_.scala.Option(__v)) def getPatch: _root_.scala.Int = patch.getOrElse(0) def clearPatch: Version = copy(patch = _root_.scala.None) - def withPatch(__v: _root_.scala.Int): Version = copy(patch = Option(__v)) + def withPatch(__v: _root_.scala.Int): Version = copy(patch = _root_.scala.Option(__v)) def getSuffix: _root_.scala.Predef.String = suffix.getOrElse("") def clearSuffix: Version = copy(suffix = _root_.scala.None) - def withSuffix(__v: _root_.scala.Predef.String): Version = copy(suffix = Option(__v)) + def withSuffix(__v: _root_.scala.Predef.String): Version = copy(suffix = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 45d7363e2..a28126758 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 @@ -141,7 +141,7 @@ 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 = Option(__v)) + def withName(__v: _root_.scala.Predef.String): DescriptorProto = copy(name = _root_.scala.Option(__v)) def clearField = copy(field = _root_.scala.Seq.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) @@ -168,7 +168,7 @@ final case class DescriptorProto( 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 = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.MessageOptions): DescriptorProto = copy(options = _root_.scala.Option(__v)) def clearReservedRange = copy(reservedRange = _root_.scala.Seq.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) @@ -409,13 +409,13 @@ object DescriptorProto extends scalapb.GeneratedMessageCompanion[com.google.prot } def getStart: _root_.scala.Int = start.getOrElse(0) def clearStart: ExtensionRange = copy(start = _root_.scala.None) - def withStart(__v: _root_.scala.Int): ExtensionRange = copy(start = Option(__v)) + def withStart(__v: _root_.scala.Int): ExtensionRange = copy(start = _root_.scala.Option(__v)) def getEnd: _root_.scala.Int = end.getOrElse(0) def clearEnd: ExtensionRange = copy(end = _root_.scala.None) - def withEnd(__v: _root_.scala.Int): ExtensionRange = copy(end = Option(__v)) + def withEnd(__v: _root_.scala.Int): ExtensionRange = copy(end = _root_.scala.Option(__v)) def getOptions: com.google.protobuf.descriptor.ExtensionRangeOptions = options.getOrElse(com.google.protobuf.descriptor.ExtensionRangeOptions.defaultInstance) def clearOptions: ExtensionRange = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.ExtensionRangeOptions): ExtensionRange = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.ExtensionRangeOptions): ExtensionRange = copy(options = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { @@ -583,10 +583,10 @@ object DescriptorProto extends scalapb.GeneratedMessageCompanion[com.google.prot } def getStart: _root_.scala.Int = start.getOrElse(0) def clearStart: ReservedRange = copy(start = _root_.scala.None) - def withStart(__v: _root_.scala.Int): ReservedRange = copy(start = Option(__v)) + def withStart(__v: _root_.scala.Int): ReservedRange = copy(start = _root_.scala.Option(__v)) def getEnd: _root_.scala.Int = end.getOrElse(0) def clearEnd: ReservedRange = copy(end = _root_.scala.None) - def withEnd(__v: _root_.scala.Int): ReservedRange = copy(end = Option(__v)) + def withEnd(__v: _root_.scala.Int): ReservedRange = copy(end = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 31f542ac9..b75da041d 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 @@ -90,14 +90,14 @@ 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 = Option(__v)) + def withName(__v: _root_.scala.Predef.String): EnumDescriptorProto = copy(name = _root_.scala.Option(__v)) def clearValue = copy(value = _root_.scala.Seq.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 = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.EnumOptions): EnumDescriptorProto = copy(options = _root_.scala.Option(__v)) def clearReservedRange = copy(reservedRange = _root_.scala.Seq.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) @@ -278,10 +278,10 @@ object EnumDescriptorProto extends scalapb.GeneratedMessageCompanion[com.google. } def getStart: _root_.scala.Int = start.getOrElse(0) def clearStart: EnumReservedRange = copy(start = _root_.scala.None) - def withStart(__v: _root_.scala.Int): EnumReservedRange = copy(start = Option(__v)) + def withStart(__v: _root_.scala.Int): EnumReservedRange = copy(start = _root_.scala.Option(__v)) def getEnd: _root_.scala.Int = end.getOrElse(0) def clearEnd: EnumReservedRange = copy(end = _root_.scala.None) - def withEnd(__v: _root_.scala.Int): EnumReservedRange = copy(end = Option(__v)) + def withEnd(__v: _root_.scala.Int): EnumReservedRange = copy(end = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 ba9961fdb..f2c6fb84b 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 @@ -98,16 +98,16 @@ final case class EnumOptions( } def getAllowAlias: _root_.scala.Boolean = allowAlias.getOrElse(false) def clearAllowAlias: EnumOptions = copy(allowAlias = _root_.scala.None) - def withAllowAlias(__v: _root_.scala.Boolean): EnumOptions = copy(allowAlias = Option(__v)) + def withAllowAlias(__v: _root_.scala.Boolean): EnumOptions = copy(allowAlias = _root_.scala.Option(__v)) def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: EnumOptions = copy(deprecated = _root_.scala.None) - def withDeprecated(__v: _root_.scala.Boolean): EnumOptions = copy(deprecated = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): EnumOptions = copy(deprecated = _root_.scala.Option(__v)) def getDeprecatedLegacyJsonFieldConflicts: _root_.scala.Boolean = deprecatedLegacyJsonFieldConflicts.getOrElse(false) def clearDeprecatedLegacyJsonFieldConflicts: EnumOptions = copy(deprecatedLegacyJsonFieldConflicts = _root_.scala.None) - def withDeprecatedLegacyJsonFieldConflicts(__v: _root_.scala.Boolean): EnumOptions = copy(deprecatedLegacyJsonFieldConflicts = Option(__v)) + def withDeprecatedLegacyJsonFieldConflicts(__v: _root_.scala.Boolean): EnumOptions = copy(deprecatedLegacyJsonFieldConflicts = _root_.scala.Option(__v)) 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 = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): EnumOptions = copy(features = _root_.scala.Option(__v)) def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.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) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumValueDescriptorProto.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumValueDescriptorProto.scala index 2e3d1a6dd..08e097c47 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumValueDescriptorProto.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/EnumValueDescriptorProto.scala @@ -59,13 +59,13 @@ final case class EnumValueDescriptorProto( } def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: EnumValueDescriptorProto = copy(name = _root_.scala.None) - def withName(__v: _root_.scala.Predef.String): EnumValueDescriptorProto = copy(name = Option(__v)) + def withName(__v: _root_.scala.Predef.String): EnumValueDescriptorProto = copy(name = _root_.scala.Option(__v)) def getNumber: _root_.scala.Int = number.getOrElse(0) def clearNumber: EnumValueDescriptorProto = copy(number = _root_.scala.None) - def withNumber(__v: _root_.scala.Int): EnumValueDescriptorProto = copy(number = Option(__v)) + def withNumber(__v: _root_.scala.Int): EnumValueDescriptorProto = copy(number = _root_.scala.Option(__v)) def getOptions: com.google.protobuf.descriptor.EnumValueOptions = options.getOrElse(com.google.protobuf.descriptor.EnumValueOptions.defaultInstance) def clearOptions: EnumValueDescriptorProto = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.EnumValueOptions): EnumValueDescriptorProto = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.EnumValueOptions): EnumValueDescriptorProto = copy(options = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 94dfce011..4d7e44212 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 @@ -96,16 +96,16 @@ final case class EnumValueOptions( } def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: EnumValueOptions = copy(deprecated = _root_.scala.None) - def withDeprecated(__v: _root_.scala.Boolean): EnumValueOptions = copy(deprecated = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): EnumValueOptions = copy(deprecated = _root_.scala.Option(__v)) def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: EnumValueOptions = copy(features = _root_.scala.None) - def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): EnumValueOptions = copy(features = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): EnumValueOptions = copy(features = _root_.scala.Option(__v)) def getDebugRedact: _root_.scala.Boolean = debugRedact.getOrElse(false) def clearDebugRedact: EnumValueOptions = copy(debugRedact = _root_.scala.None) - def withDebugRedact(__v: _root_.scala.Boolean): EnumValueOptions = copy(debugRedact = Option(__v)) + def withDebugRedact(__v: _root_.scala.Boolean): EnumValueOptions = copy(debugRedact = _root_.scala.Option(__v)) 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 = Option(__v)) + 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 addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): EnumValueOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): EnumValueOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) 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 8ac7d2fb4..81a9e2986 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 @@ -92,10 +92,10 @@ final case class ExtensionRangeOptions( def withDeclaration(__v: _root_.scala.Seq[com.google.protobuf.descriptor.ExtensionRangeOptions.Declaration]): ExtensionRangeOptions = copy(declaration = __v) def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: ExtensionRangeOptions = copy(features = _root_.scala.None) - def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): ExtensionRangeOptions = copy(features = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): ExtensionRangeOptions = copy(features = _root_.scala.Option(__v)) def getVerification: com.google.protobuf.descriptor.ExtensionRangeOptions.VerificationState = verification.getOrElse(com.google.protobuf.descriptor.ExtensionRangeOptions.VerificationState.UNVERIFIED) def clearVerification: ExtensionRangeOptions = copy(verification = _root_.scala.None) - def withVerification(__v: com.google.protobuf.descriptor.ExtensionRangeOptions.VerificationState): ExtensionRangeOptions = copy(verification = Option(__v)) + def withVerification(__v: com.google.protobuf.descriptor.ExtensionRangeOptions.VerificationState): ExtensionRangeOptions = copy(verification = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { @@ -341,19 +341,19 @@ object ExtensionRangeOptions extends scalapb.GeneratedMessageCompanion[com.googl } def getNumber: _root_.scala.Int = number.getOrElse(0) def clearNumber: Declaration = copy(number = _root_.scala.None) - def withNumber(__v: _root_.scala.Int): Declaration = copy(number = Option(__v)) + def withNumber(__v: _root_.scala.Int): Declaration = copy(number = _root_.scala.Option(__v)) def getFullName: _root_.scala.Predef.String = fullName.getOrElse("") def clearFullName: Declaration = copy(fullName = _root_.scala.None) - def withFullName(__v: _root_.scala.Predef.String): Declaration = copy(fullName = Option(__v)) + def withFullName(__v: _root_.scala.Predef.String): Declaration = copy(fullName = _root_.scala.Option(__v)) def getType: _root_.scala.Predef.String = `type`.getOrElse("") def clearType: Declaration = copy(`type` = _root_.scala.None) - def withType(__v: _root_.scala.Predef.String): Declaration = copy(`type` = Option(__v)) + def withType(__v: _root_.scala.Predef.String): Declaration = copy(`type` = _root_.scala.Option(__v)) def getReserved: _root_.scala.Boolean = reserved.getOrElse(false) def clearReserved: Declaration = copy(reserved = _root_.scala.None) - def withReserved(__v: _root_.scala.Boolean): Declaration = copy(reserved = Option(__v)) + def withReserved(__v: _root_.scala.Boolean): Declaration = copy(reserved = _root_.scala.Option(__v)) def getRepeated: _root_.scala.Boolean = repeated.getOrElse(false) def clearRepeated: Declaration = copy(repeated = _root_.scala.None) - def withRepeated(__v: _root_.scala.Boolean): Declaration = copy(repeated = Option(__v)) + def withRepeated(__v: _root_.scala.Boolean): Declaration = copy(repeated = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FeatureSet.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FeatureSet.scala index 00167b6a7..11e807f05 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FeatureSet.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FeatureSet.scala @@ -89,22 +89,22 @@ final case class FeatureSet( } def getFieldPresence: com.google.protobuf.descriptor.FeatureSet.FieldPresence = fieldPresence.getOrElse(com.google.protobuf.descriptor.FeatureSet.FieldPresence.FIELD_PRESENCE_UNKNOWN) def clearFieldPresence: FeatureSet = copy(fieldPresence = _root_.scala.None) - def withFieldPresence(__v: com.google.protobuf.descriptor.FeatureSet.FieldPresence): FeatureSet = copy(fieldPresence = Option(__v)) + def withFieldPresence(__v: com.google.protobuf.descriptor.FeatureSet.FieldPresence): FeatureSet = copy(fieldPresence = _root_.scala.Option(__v)) def getEnumType: com.google.protobuf.descriptor.FeatureSet.EnumType = enumType.getOrElse(com.google.protobuf.descriptor.FeatureSet.EnumType.ENUM_TYPE_UNKNOWN) def clearEnumType: FeatureSet = copy(enumType = _root_.scala.None) - def withEnumType(__v: com.google.protobuf.descriptor.FeatureSet.EnumType): FeatureSet = copy(enumType = Option(__v)) + def withEnumType(__v: com.google.protobuf.descriptor.FeatureSet.EnumType): FeatureSet = copy(enumType = _root_.scala.Option(__v)) def getRepeatedFieldEncoding: com.google.protobuf.descriptor.FeatureSet.RepeatedFieldEncoding = repeatedFieldEncoding.getOrElse(com.google.protobuf.descriptor.FeatureSet.RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN) def clearRepeatedFieldEncoding: FeatureSet = copy(repeatedFieldEncoding = _root_.scala.None) - def withRepeatedFieldEncoding(__v: com.google.protobuf.descriptor.FeatureSet.RepeatedFieldEncoding): FeatureSet = copy(repeatedFieldEncoding = Option(__v)) + def withRepeatedFieldEncoding(__v: com.google.protobuf.descriptor.FeatureSet.RepeatedFieldEncoding): FeatureSet = copy(repeatedFieldEncoding = _root_.scala.Option(__v)) def getUtf8Validation: com.google.protobuf.descriptor.FeatureSet.Utf8Validation = utf8Validation.getOrElse(com.google.protobuf.descriptor.FeatureSet.Utf8Validation.UTF8_VALIDATION_UNKNOWN) def clearUtf8Validation: FeatureSet = copy(utf8Validation = _root_.scala.None) - def withUtf8Validation(__v: com.google.protobuf.descriptor.FeatureSet.Utf8Validation): FeatureSet = copy(utf8Validation = Option(__v)) + def withUtf8Validation(__v: com.google.protobuf.descriptor.FeatureSet.Utf8Validation): FeatureSet = copy(utf8Validation = _root_.scala.Option(__v)) def getMessageEncoding: com.google.protobuf.descriptor.FeatureSet.MessageEncoding = messageEncoding.getOrElse(com.google.protobuf.descriptor.FeatureSet.MessageEncoding.MESSAGE_ENCODING_UNKNOWN) def clearMessageEncoding: FeatureSet = copy(messageEncoding = _root_.scala.None) - def withMessageEncoding(__v: com.google.protobuf.descriptor.FeatureSet.MessageEncoding): FeatureSet = copy(messageEncoding = Option(__v)) + def withMessageEncoding(__v: com.google.protobuf.descriptor.FeatureSet.MessageEncoding): FeatureSet = copy(messageEncoding = _root_.scala.Option(__v)) def getJsonFormat: com.google.protobuf.descriptor.FeatureSet.JsonFormat = jsonFormat.getOrElse(com.google.protobuf.descriptor.FeatureSet.JsonFormat.JSON_FORMAT_UNKNOWN) def clearJsonFormat: FeatureSet = copy(jsonFormat = _root_.scala.None) - def withJsonFormat(__v: com.google.protobuf.descriptor.FeatureSet.JsonFormat): FeatureSet = copy(jsonFormat = Option(__v)) + def withJsonFormat(__v: com.google.protobuf.descriptor.FeatureSet.JsonFormat): FeatureSet = copy(jsonFormat = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 515163923..104f0fd5a 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 @@ -74,10 +74,10 @@ final case class FeatureSetDefaults( def withDefaults(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault]): FeatureSetDefaults = copy(defaults = __v) def getMinimumEdition: com.google.protobuf.descriptor.Edition = minimumEdition.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearMinimumEdition: FeatureSetDefaults = copy(minimumEdition = _root_.scala.None) - def withMinimumEdition(__v: com.google.protobuf.descriptor.Edition): FeatureSetDefaults = copy(minimumEdition = Option(__v)) + def withMinimumEdition(__v: com.google.protobuf.descriptor.Edition): FeatureSetDefaults = copy(minimumEdition = _root_.scala.Option(__v)) def getMaximumEdition: com.google.protobuf.descriptor.Edition = maximumEdition.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearMaximumEdition: FeatureSetDefaults = copy(maximumEdition = _root_.scala.None) - def withMaximumEdition(__v: com.google.protobuf.descriptor.Edition): FeatureSetDefaults = copy(maximumEdition = Option(__v)) + def withMaximumEdition(__v: com.google.protobuf.descriptor.Edition): FeatureSetDefaults = copy(maximumEdition = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { @@ -244,13 +244,13 @@ object FeatureSetDefaults extends scalapb.GeneratedMessageCompanion[com.google.p } def getEdition: com.google.protobuf.descriptor.Edition = edition.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearEdition: FeatureSetEditionDefault = copy(edition = _root_.scala.None) - def withEdition(__v: com.google.protobuf.descriptor.Edition): FeatureSetEditionDefault = copy(edition = Option(__v)) + def withEdition(__v: com.google.protobuf.descriptor.Edition): FeatureSetEditionDefault = copy(edition = _root_.scala.Option(__v)) def getOverridableFeatures: com.google.protobuf.descriptor.FeatureSet = overridableFeatures.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearOverridableFeatures: FeatureSetEditionDefault = copy(overridableFeatures = _root_.scala.None) - def withOverridableFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FeatureSetEditionDefault = copy(overridableFeatures = Option(__v)) + def withOverridableFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FeatureSetEditionDefault = copy(overridableFeatures = _root_.scala.Option(__v)) def getFixedFeatures: com.google.protobuf.descriptor.FeatureSet = fixedFeatures.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFixedFeatures: FeatureSetEditionDefault = copy(fixedFeatures = _root_.scala.None) - def withFixedFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FeatureSetEditionDefault = copy(fixedFeatures = Option(__v)) + def withFixedFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FeatureSetEditionDefault = copy(fixedFeatures = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FieldDescriptorProto.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FieldDescriptorProto.scala index aac142bd8..2d8bf946e 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FieldDescriptorProto.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/FieldDescriptorProto.scala @@ -179,37 +179,37 @@ final case class FieldDescriptorProto( } def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: FieldDescriptorProto = copy(name = _root_.scala.None) - def withName(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(name = Option(__v)) + def withName(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(name = _root_.scala.Option(__v)) def getNumber: _root_.scala.Int = number.getOrElse(0) def clearNumber: FieldDescriptorProto = copy(number = _root_.scala.None) - def withNumber(__v: _root_.scala.Int): FieldDescriptorProto = copy(number = Option(__v)) + def withNumber(__v: _root_.scala.Int): FieldDescriptorProto = copy(number = _root_.scala.Option(__v)) def getLabel: com.google.protobuf.descriptor.FieldDescriptorProto.Label = label.getOrElse(com.google.protobuf.descriptor.FieldDescriptorProto.Label.LABEL_OPTIONAL) def clearLabel: FieldDescriptorProto = copy(label = _root_.scala.None) - def withLabel(__v: com.google.protobuf.descriptor.FieldDescriptorProto.Label): FieldDescriptorProto = copy(label = Option(__v)) + def withLabel(__v: com.google.protobuf.descriptor.FieldDescriptorProto.Label): FieldDescriptorProto = copy(label = _root_.scala.Option(__v)) def getType: com.google.protobuf.descriptor.FieldDescriptorProto.Type = `type`.getOrElse(com.google.protobuf.descriptor.FieldDescriptorProto.Type.TYPE_DOUBLE) def clearType: FieldDescriptorProto = copy(`type` = _root_.scala.None) - def withType(__v: com.google.protobuf.descriptor.FieldDescriptorProto.Type): FieldDescriptorProto = copy(`type` = Option(__v)) + def withType(__v: com.google.protobuf.descriptor.FieldDescriptorProto.Type): FieldDescriptorProto = copy(`type` = _root_.scala.Option(__v)) def getTypeName: _root_.scala.Predef.String = typeName.getOrElse("") def clearTypeName: FieldDescriptorProto = copy(typeName = _root_.scala.None) - def withTypeName(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(typeName = Option(__v)) + def withTypeName(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(typeName = _root_.scala.Option(__v)) def getExtendee: _root_.scala.Predef.String = extendee.getOrElse("") def clearExtendee: FieldDescriptorProto = copy(extendee = _root_.scala.None) - def withExtendee(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(extendee = Option(__v)) + def withExtendee(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(extendee = _root_.scala.Option(__v)) def getDefaultValue: _root_.scala.Predef.String = defaultValue.getOrElse("") def clearDefaultValue: FieldDescriptorProto = copy(defaultValue = _root_.scala.None) - def withDefaultValue(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(defaultValue = Option(__v)) + def withDefaultValue(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(defaultValue = _root_.scala.Option(__v)) def getOneofIndex: _root_.scala.Int = oneofIndex.getOrElse(0) def clearOneofIndex: FieldDescriptorProto = copy(oneofIndex = _root_.scala.None) - def withOneofIndex(__v: _root_.scala.Int): FieldDescriptorProto = copy(oneofIndex = Option(__v)) + def withOneofIndex(__v: _root_.scala.Int): FieldDescriptorProto = copy(oneofIndex = _root_.scala.Option(__v)) def getJsonName: _root_.scala.Predef.String = jsonName.getOrElse("") def clearJsonName: FieldDescriptorProto = copy(jsonName = _root_.scala.None) - def withJsonName(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(jsonName = Option(__v)) + def withJsonName(__v: _root_.scala.Predef.String): FieldDescriptorProto = copy(jsonName = _root_.scala.Option(__v)) def getOptions: com.google.protobuf.descriptor.FieldOptions = options.getOrElse(com.google.protobuf.descriptor.FieldOptions.defaultInstance) def clearOptions: FieldDescriptorProto = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.FieldOptions): FieldDescriptorProto = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.FieldOptions): FieldDescriptorProto = copy(options = _root_.scala.Option(__v)) def getProto3Optional: _root_.scala.Boolean = proto3Optional.getOrElse(false) def clearProto3Optional: FieldDescriptorProto = copy(proto3Optional = _root_.scala.None) - def withProto3Optional(__v: _root_.scala.Boolean): FieldDescriptorProto = copy(proto3Optional = Option(__v)) + def withProto3Optional(__v: _root_.scala.Boolean): FieldDescriptorProto = copy(proto3Optional = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 7ed0348a8..933689915 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 @@ -233,31 +233,31 @@ final case class FieldOptions( } def getCtype: com.google.protobuf.descriptor.FieldOptions.CType = ctype.getOrElse(com.google.protobuf.descriptor.FieldOptions.CType.STRING) def clearCtype: FieldOptions = copy(ctype = _root_.scala.None) - def withCtype(__v: com.google.protobuf.descriptor.FieldOptions.CType): FieldOptions = copy(ctype = Option(__v)) + def withCtype(__v: com.google.protobuf.descriptor.FieldOptions.CType): FieldOptions = copy(ctype = _root_.scala.Option(__v)) def getPacked: _root_.scala.Boolean = packed.getOrElse(false) def clearPacked: FieldOptions = copy(packed = _root_.scala.None) - def withPacked(__v: _root_.scala.Boolean): FieldOptions = copy(packed = Option(__v)) + def withPacked(__v: _root_.scala.Boolean): FieldOptions = copy(packed = _root_.scala.Option(__v)) def getJstype: com.google.protobuf.descriptor.FieldOptions.JSType = jstype.getOrElse(com.google.protobuf.descriptor.FieldOptions.JSType.JS_NORMAL) def clearJstype: FieldOptions = copy(jstype = _root_.scala.None) - def withJstype(__v: com.google.protobuf.descriptor.FieldOptions.JSType): FieldOptions = copy(jstype = Option(__v)) + def withJstype(__v: com.google.protobuf.descriptor.FieldOptions.JSType): FieldOptions = copy(jstype = _root_.scala.Option(__v)) def getLazy: _root_.scala.Boolean = `lazy`.getOrElse(false) def clearLazy: FieldOptions = copy(`lazy` = _root_.scala.None) - def withLazy(__v: _root_.scala.Boolean): FieldOptions = copy(`lazy` = Option(__v)) + def withLazy(__v: _root_.scala.Boolean): FieldOptions = copy(`lazy` = _root_.scala.Option(__v)) def getUnverifiedLazy: _root_.scala.Boolean = unverifiedLazy.getOrElse(false) def clearUnverifiedLazy: FieldOptions = copy(unverifiedLazy = _root_.scala.None) - def withUnverifiedLazy(__v: _root_.scala.Boolean): FieldOptions = copy(unverifiedLazy = Option(__v)) + def withUnverifiedLazy(__v: _root_.scala.Boolean): FieldOptions = copy(unverifiedLazy = _root_.scala.Option(__v)) def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: FieldOptions = copy(deprecated = _root_.scala.None) - def withDeprecated(__v: _root_.scala.Boolean): FieldOptions = copy(deprecated = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): FieldOptions = copy(deprecated = _root_.scala.Option(__v)) def getWeak: _root_.scala.Boolean = weak.getOrElse(false) def clearWeak: FieldOptions = copy(weak = _root_.scala.None) - def withWeak(__v: _root_.scala.Boolean): FieldOptions = copy(weak = Option(__v)) + def withWeak(__v: _root_.scala.Boolean): FieldOptions = copy(weak = _root_.scala.Option(__v)) def getDebugRedact: _root_.scala.Boolean = debugRedact.getOrElse(false) def clearDebugRedact: FieldOptions = copy(debugRedact = _root_.scala.None) - def withDebugRedact(__v: _root_.scala.Boolean): FieldOptions = copy(debugRedact = Option(__v)) + def withDebugRedact(__v: _root_.scala.Boolean): FieldOptions = copy(debugRedact = _root_.scala.Option(__v)) 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 = Option(__v)) + 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 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) @@ -268,10 +268,10 @@ final case class FieldOptions( def withEditionDefaults(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldOptions.EditionDefault]): FieldOptions = copy(editionDefaults = __v) def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: FieldOptions = copy(features = _root_.scala.None) - def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FieldOptions = copy(features = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FieldOptions = copy(features = _root_.scala.Option(__v)) 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 = Option(__v)) + 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 addUninterpretedOption(__vs: com.google.protobuf.descriptor.UninterpretedOption *): FieldOptions = addAllUninterpretedOption(__vs) def addAllUninterpretedOption(__vs: Iterable[com.google.protobuf.descriptor.UninterpretedOption]): FieldOptions = copy(uninterpretedOption = uninterpretedOption ++ __vs) @@ -841,10 +841,10 @@ object FieldOptions extends scalapb.GeneratedMessageCompanion[com.google.protobu } def getEdition: com.google.protobuf.descriptor.Edition = edition.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearEdition: EditionDefault = copy(edition = _root_.scala.None) - def withEdition(__v: com.google.protobuf.descriptor.Edition): EditionDefault = copy(edition = Option(__v)) + def withEdition(__v: com.google.protobuf.descriptor.Edition): EditionDefault = copy(edition = _root_.scala.Option(__v)) def getValue: _root_.scala.Predef.String = value.getOrElse("") def clearValue: EditionDefault = copy(value = _root_.scala.None) - def withValue(__v: _root_.scala.Predef.String): EditionDefault = copy(value = Option(__v)) + def withValue(__v: _root_.scala.Predef.String): EditionDefault = copy(value = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { @@ -1021,16 +1021,16 @@ object FieldOptions extends scalapb.GeneratedMessageCompanion[com.google.protobu } def getEditionIntroduced: com.google.protobuf.descriptor.Edition = editionIntroduced.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearEditionIntroduced: FeatureSupport = copy(editionIntroduced = _root_.scala.None) - def withEditionIntroduced(__v: com.google.protobuf.descriptor.Edition): FeatureSupport = copy(editionIntroduced = Option(__v)) + def withEditionIntroduced(__v: com.google.protobuf.descriptor.Edition): FeatureSupport = copy(editionIntroduced = _root_.scala.Option(__v)) def getEditionDeprecated: com.google.protobuf.descriptor.Edition = editionDeprecated.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearEditionDeprecated: FeatureSupport = copy(editionDeprecated = _root_.scala.None) - def withEditionDeprecated(__v: com.google.protobuf.descriptor.Edition): FeatureSupport = copy(editionDeprecated = Option(__v)) + def withEditionDeprecated(__v: com.google.protobuf.descriptor.Edition): FeatureSupport = copy(editionDeprecated = _root_.scala.Option(__v)) def getDeprecationWarning: _root_.scala.Predef.String = deprecationWarning.getOrElse("") def clearDeprecationWarning: FeatureSupport = copy(deprecationWarning = _root_.scala.None) - def withDeprecationWarning(__v: _root_.scala.Predef.String): FeatureSupport = copy(deprecationWarning = Option(__v)) + def withDeprecationWarning(__v: _root_.scala.Predef.String): FeatureSupport = copy(deprecationWarning = _root_.scala.Option(__v)) def getEditionRemoved: com.google.protobuf.descriptor.Edition = editionRemoved.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearEditionRemoved: FeatureSupport = copy(editionRemoved = _root_.scala.None) - def withEditionRemoved(__v: com.google.protobuf.descriptor.Edition): FeatureSupport = copy(editionRemoved = Option(__v)) + def withEditionRemoved(__v: com.google.protobuf.descriptor.Edition): FeatureSupport = copy(editionRemoved = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 bdfb4592b..e2394d06f 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 @@ -186,10 +186,10 @@ final case class FileDescriptorProto( } def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: FileDescriptorProto = copy(name = _root_.scala.None) - def withName(__v: _root_.scala.Predef.String): FileDescriptorProto = copy(name = Option(__v)) + def withName(__v: _root_.scala.Predef.String): FileDescriptorProto = copy(name = _root_.scala.Option(__v)) 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` = Option(__v)) + def withPackage(__v: _root_.scala.Predef.String): FileDescriptorProto = copy(`package` = _root_.scala.Option(__v)) def clearDependency = copy(dependency = _root_.scala.Seq.empty) def addDependency(__vs: _root_.scala.Predef.String *): FileDescriptorProto = addAllDependency(__vs) def addAllDependency(__vs: Iterable[_root_.scala.Predef.String]): FileDescriptorProto = copy(dependency = dependency ++ __vs) @@ -220,16 +220,16 @@ final case class FileDescriptorProto( def withExtension(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FieldDescriptorProto]): FileDescriptorProto = copy(extension = __v) def getOptions: com.google.protobuf.descriptor.FileOptions = options.getOrElse(com.google.protobuf.descriptor.FileOptions.defaultInstance) def clearOptions: FileDescriptorProto = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.FileOptions): FileDescriptorProto = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.FileOptions): FileDescriptorProto = copy(options = _root_.scala.Option(__v)) def getSourceCodeInfo: com.google.protobuf.descriptor.SourceCodeInfo = sourceCodeInfo.getOrElse(com.google.protobuf.descriptor.SourceCodeInfo.defaultInstance) def clearSourceCodeInfo: FileDescriptorProto = copy(sourceCodeInfo = _root_.scala.None) - def withSourceCodeInfo(__v: com.google.protobuf.descriptor.SourceCodeInfo): FileDescriptorProto = copy(sourceCodeInfo = Option(__v)) + def withSourceCodeInfo(__v: com.google.protobuf.descriptor.SourceCodeInfo): FileDescriptorProto = copy(sourceCodeInfo = _root_.scala.Option(__v)) def getSyntax: _root_.scala.Predef.String = syntax.getOrElse("") def clearSyntax: FileDescriptorProto = copy(syntax = _root_.scala.None) - def withSyntax(__v: _root_.scala.Predef.String): FileDescriptorProto = copy(syntax = Option(__v)) + def withSyntax(__v: _root_.scala.Predef.String): FileDescriptorProto = copy(syntax = _root_.scala.Option(__v)) def getEdition: com.google.protobuf.descriptor.Edition = edition.getOrElse(com.google.protobuf.descriptor.Edition.EDITION_UNKNOWN) def clearEdition: FileDescriptorProto = copy(edition = _root_.scala.None) - def withEdition(__v: com.google.protobuf.descriptor.Edition): FileDescriptorProto = copy(edition = Option(__v)) + def withEdition(__v: com.google.protobuf.descriptor.Edition): FileDescriptorProto = copy(edition = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 962ad97c2..c4dcf7796 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 @@ -309,64 +309,64 @@ final case class FileOptions( } def getJavaPackage: _root_.scala.Predef.String = javaPackage.getOrElse("") def clearJavaPackage: FileOptions = copy(javaPackage = _root_.scala.None) - def withJavaPackage(__v: _root_.scala.Predef.String): FileOptions = copy(javaPackage = Option(__v)) + def withJavaPackage(__v: _root_.scala.Predef.String): FileOptions = copy(javaPackage = _root_.scala.Option(__v)) def getJavaOuterClassname: _root_.scala.Predef.String = javaOuterClassname.getOrElse("") def clearJavaOuterClassname: FileOptions = copy(javaOuterClassname = _root_.scala.None) - def withJavaOuterClassname(__v: _root_.scala.Predef.String): FileOptions = copy(javaOuterClassname = Option(__v)) + def withJavaOuterClassname(__v: _root_.scala.Predef.String): FileOptions = copy(javaOuterClassname = _root_.scala.Option(__v)) def getJavaMultipleFiles: _root_.scala.Boolean = javaMultipleFiles.getOrElse(false) def clearJavaMultipleFiles: FileOptions = copy(javaMultipleFiles = _root_.scala.None) - def withJavaMultipleFiles(__v: _root_.scala.Boolean): FileOptions = copy(javaMultipleFiles = Option(__v)) + def withJavaMultipleFiles(__v: _root_.scala.Boolean): FileOptions = copy(javaMultipleFiles = _root_.scala.Option(__v)) def getJavaGenerateEqualsAndHash: _root_.scala.Boolean = javaGenerateEqualsAndHash.getOrElse(false) def clearJavaGenerateEqualsAndHash: FileOptions = copy(javaGenerateEqualsAndHash = _root_.scala.None) - def withJavaGenerateEqualsAndHash(__v: _root_.scala.Boolean): FileOptions = copy(javaGenerateEqualsAndHash = Option(__v)) + def withJavaGenerateEqualsAndHash(__v: _root_.scala.Boolean): FileOptions = copy(javaGenerateEqualsAndHash = _root_.scala.Option(__v)) def getJavaStringCheckUtf8: _root_.scala.Boolean = javaStringCheckUtf8.getOrElse(false) def clearJavaStringCheckUtf8: FileOptions = copy(javaStringCheckUtf8 = _root_.scala.None) - def withJavaStringCheckUtf8(__v: _root_.scala.Boolean): FileOptions = copy(javaStringCheckUtf8 = Option(__v)) + def withJavaStringCheckUtf8(__v: _root_.scala.Boolean): FileOptions = copy(javaStringCheckUtf8 = _root_.scala.Option(__v)) def getOptimizeFor: com.google.protobuf.descriptor.FileOptions.OptimizeMode = optimizeFor.getOrElse(com.google.protobuf.descriptor.FileOptions.OptimizeMode.SPEED) def clearOptimizeFor: FileOptions = copy(optimizeFor = _root_.scala.None) - def withOptimizeFor(__v: com.google.protobuf.descriptor.FileOptions.OptimizeMode): FileOptions = copy(optimizeFor = Option(__v)) + def withOptimizeFor(__v: com.google.protobuf.descriptor.FileOptions.OptimizeMode): FileOptions = copy(optimizeFor = _root_.scala.Option(__v)) def getGoPackage: _root_.scala.Predef.String = goPackage.getOrElse("") def clearGoPackage: FileOptions = copy(goPackage = _root_.scala.None) - def withGoPackage(__v: _root_.scala.Predef.String): FileOptions = copy(goPackage = Option(__v)) + def withGoPackage(__v: _root_.scala.Predef.String): FileOptions = copy(goPackage = _root_.scala.Option(__v)) def getCcGenericServices: _root_.scala.Boolean = ccGenericServices.getOrElse(false) def clearCcGenericServices: FileOptions = copy(ccGenericServices = _root_.scala.None) - def withCcGenericServices(__v: _root_.scala.Boolean): FileOptions = copy(ccGenericServices = Option(__v)) + def withCcGenericServices(__v: _root_.scala.Boolean): FileOptions = copy(ccGenericServices = _root_.scala.Option(__v)) def getJavaGenericServices: _root_.scala.Boolean = javaGenericServices.getOrElse(false) def clearJavaGenericServices: FileOptions = copy(javaGenericServices = _root_.scala.None) - def withJavaGenericServices(__v: _root_.scala.Boolean): FileOptions = copy(javaGenericServices = Option(__v)) + def withJavaGenericServices(__v: _root_.scala.Boolean): FileOptions = copy(javaGenericServices = _root_.scala.Option(__v)) def getPyGenericServices: _root_.scala.Boolean = pyGenericServices.getOrElse(false) def clearPyGenericServices: FileOptions = copy(pyGenericServices = _root_.scala.None) - def withPyGenericServices(__v: _root_.scala.Boolean): FileOptions = copy(pyGenericServices = Option(__v)) + def withPyGenericServices(__v: _root_.scala.Boolean): FileOptions = copy(pyGenericServices = _root_.scala.Option(__v)) def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: FileOptions = copy(deprecated = _root_.scala.None) - def withDeprecated(__v: _root_.scala.Boolean): FileOptions = copy(deprecated = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): FileOptions = copy(deprecated = _root_.scala.Option(__v)) def getCcEnableArenas: _root_.scala.Boolean = ccEnableArenas.getOrElse(true) def clearCcEnableArenas: FileOptions = copy(ccEnableArenas = _root_.scala.None) - def withCcEnableArenas(__v: _root_.scala.Boolean): FileOptions = copy(ccEnableArenas = Option(__v)) + def withCcEnableArenas(__v: _root_.scala.Boolean): FileOptions = copy(ccEnableArenas = _root_.scala.Option(__v)) def getObjcClassPrefix: _root_.scala.Predef.String = objcClassPrefix.getOrElse("") def clearObjcClassPrefix: FileOptions = copy(objcClassPrefix = _root_.scala.None) - def withObjcClassPrefix(__v: _root_.scala.Predef.String): FileOptions = copy(objcClassPrefix = Option(__v)) + def withObjcClassPrefix(__v: _root_.scala.Predef.String): FileOptions = copy(objcClassPrefix = _root_.scala.Option(__v)) def getCsharpNamespace: _root_.scala.Predef.String = csharpNamespace.getOrElse("") def clearCsharpNamespace: FileOptions = copy(csharpNamespace = _root_.scala.None) - def withCsharpNamespace(__v: _root_.scala.Predef.String): FileOptions = copy(csharpNamespace = Option(__v)) + def withCsharpNamespace(__v: _root_.scala.Predef.String): FileOptions = copy(csharpNamespace = _root_.scala.Option(__v)) def getSwiftPrefix: _root_.scala.Predef.String = swiftPrefix.getOrElse("") def clearSwiftPrefix: FileOptions = copy(swiftPrefix = _root_.scala.None) - def withSwiftPrefix(__v: _root_.scala.Predef.String): FileOptions = copy(swiftPrefix = Option(__v)) + def withSwiftPrefix(__v: _root_.scala.Predef.String): FileOptions = copy(swiftPrefix = _root_.scala.Option(__v)) def getPhpClassPrefix: _root_.scala.Predef.String = phpClassPrefix.getOrElse("") def clearPhpClassPrefix: FileOptions = copy(phpClassPrefix = _root_.scala.None) - def withPhpClassPrefix(__v: _root_.scala.Predef.String): FileOptions = copy(phpClassPrefix = Option(__v)) + def withPhpClassPrefix(__v: _root_.scala.Predef.String): FileOptions = copy(phpClassPrefix = _root_.scala.Option(__v)) def getPhpNamespace: _root_.scala.Predef.String = phpNamespace.getOrElse("") def clearPhpNamespace: FileOptions = copy(phpNamespace = _root_.scala.None) - def withPhpNamespace(__v: _root_.scala.Predef.String): FileOptions = copy(phpNamespace = Option(__v)) + def withPhpNamespace(__v: _root_.scala.Predef.String): FileOptions = copy(phpNamespace = _root_.scala.Option(__v)) def getPhpMetadataNamespace: _root_.scala.Predef.String = phpMetadataNamespace.getOrElse("") def clearPhpMetadataNamespace: FileOptions = copy(phpMetadataNamespace = _root_.scala.None) - def withPhpMetadataNamespace(__v: _root_.scala.Predef.String): FileOptions = copy(phpMetadataNamespace = Option(__v)) + def withPhpMetadataNamespace(__v: _root_.scala.Predef.String): FileOptions = copy(phpMetadataNamespace = _root_.scala.Option(__v)) def getRubyPackage: _root_.scala.Predef.String = rubyPackage.getOrElse("") def clearRubyPackage: FileOptions = copy(rubyPackage = _root_.scala.None) - def withRubyPackage(__v: _root_.scala.Predef.String): FileOptions = copy(rubyPackage = Option(__v)) + def withRubyPackage(__v: _root_.scala.Predef.String): FileOptions = copy(rubyPackage = _root_.scala.Option(__v)) 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 = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): FileOptions = copy(features = _root_.scala.Option(__v)) def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.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) 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 17a93e081..844d0a178 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 @@ -222,16 +222,16 @@ object GeneratedCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.pr def withPath(__v: _root_.scala.Seq[_root_.scala.Int]): Annotation = copy(path = __v) def getSourceFile: _root_.scala.Predef.String = sourceFile.getOrElse("") def clearSourceFile: Annotation = copy(sourceFile = _root_.scala.None) - def withSourceFile(__v: _root_.scala.Predef.String): Annotation = copy(sourceFile = Option(__v)) + def withSourceFile(__v: _root_.scala.Predef.String): Annotation = copy(sourceFile = _root_.scala.Option(__v)) def getBegin: _root_.scala.Int = begin.getOrElse(0) def clearBegin: Annotation = copy(begin = _root_.scala.None) - def withBegin(__v: _root_.scala.Int): Annotation = copy(begin = Option(__v)) + def withBegin(__v: _root_.scala.Int): Annotation = copy(begin = _root_.scala.Option(__v)) def getEnd: _root_.scala.Int = end.getOrElse(0) def clearEnd: Annotation = copy(end = _root_.scala.None) - def withEnd(__v: _root_.scala.Int): Annotation = copy(end = Option(__v)) + def withEnd(__v: _root_.scala.Int): Annotation = copy(end = _root_.scala.Option(__v)) def getSemantic: com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation.Semantic = semantic.getOrElse(com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation.Semantic.NONE) def clearSemantic: Annotation = copy(semantic = _root_.scala.None) - def withSemantic(__v: com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation.Semantic): Annotation = copy(semantic = Option(__v)) + def withSemantic(__v: com.google.protobuf.descriptor.GeneratedCodeInfo.Annotation.Semantic): Annotation = copy(semantic = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 ddb3430af..11fc4556e 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 @@ -162,22 +162,22 @@ final case class MessageOptions( } def getMessageSetWireFormat: _root_.scala.Boolean = messageSetWireFormat.getOrElse(false) def clearMessageSetWireFormat: MessageOptions = copy(messageSetWireFormat = _root_.scala.None) - def withMessageSetWireFormat(__v: _root_.scala.Boolean): MessageOptions = copy(messageSetWireFormat = Option(__v)) + def withMessageSetWireFormat(__v: _root_.scala.Boolean): MessageOptions = copy(messageSetWireFormat = _root_.scala.Option(__v)) def getNoStandardDescriptorAccessor: _root_.scala.Boolean = noStandardDescriptorAccessor.getOrElse(false) def clearNoStandardDescriptorAccessor: MessageOptions = copy(noStandardDescriptorAccessor = _root_.scala.None) - def withNoStandardDescriptorAccessor(__v: _root_.scala.Boolean): MessageOptions = copy(noStandardDescriptorAccessor = Option(__v)) + def withNoStandardDescriptorAccessor(__v: _root_.scala.Boolean): MessageOptions = copy(noStandardDescriptorAccessor = _root_.scala.Option(__v)) def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: MessageOptions = copy(deprecated = _root_.scala.None) - def withDeprecated(__v: _root_.scala.Boolean): MessageOptions = copy(deprecated = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): MessageOptions = copy(deprecated = _root_.scala.Option(__v)) def getMapEntry: _root_.scala.Boolean = mapEntry.getOrElse(false) def clearMapEntry: MessageOptions = copy(mapEntry = _root_.scala.None) - def withMapEntry(__v: _root_.scala.Boolean): MessageOptions = copy(mapEntry = Option(__v)) + def withMapEntry(__v: _root_.scala.Boolean): MessageOptions = copy(mapEntry = _root_.scala.Option(__v)) def getDeprecatedLegacyJsonFieldConflicts: _root_.scala.Boolean = deprecatedLegacyJsonFieldConflicts.getOrElse(false) def clearDeprecatedLegacyJsonFieldConflicts: MessageOptions = copy(deprecatedLegacyJsonFieldConflicts = _root_.scala.None) - def withDeprecatedLegacyJsonFieldConflicts(__v: _root_.scala.Boolean): MessageOptions = copy(deprecatedLegacyJsonFieldConflicts = Option(__v)) + def withDeprecatedLegacyJsonFieldConflicts(__v: _root_.scala.Boolean): MessageOptions = copy(deprecatedLegacyJsonFieldConflicts = _root_.scala.Option(__v)) 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 = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): MessageOptions = copy(features = _root_.scala.Option(__v)) def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.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) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/MethodDescriptorProto.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/MethodDescriptorProto.scala index 6d0078015..3b6421ca6 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/MethodDescriptorProto.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/MethodDescriptorProto.scala @@ -94,22 +94,22 @@ final case class MethodDescriptorProto( } def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: MethodDescriptorProto = copy(name = _root_.scala.None) - def withName(__v: _root_.scala.Predef.String): MethodDescriptorProto = copy(name = Option(__v)) + def withName(__v: _root_.scala.Predef.String): MethodDescriptorProto = copy(name = _root_.scala.Option(__v)) def getInputType: _root_.scala.Predef.String = inputType.getOrElse("") def clearInputType: MethodDescriptorProto = copy(inputType = _root_.scala.None) - def withInputType(__v: _root_.scala.Predef.String): MethodDescriptorProto = copy(inputType = Option(__v)) + def withInputType(__v: _root_.scala.Predef.String): MethodDescriptorProto = copy(inputType = _root_.scala.Option(__v)) def getOutputType: _root_.scala.Predef.String = outputType.getOrElse("") def clearOutputType: MethodDescriptorProto = copy(outputType = _root_.scala.None) - def withOutputType(__v: _root_.scala.Predef.String): MethodDescriptorProto = copy(outputType = Option(__v)) + def withOutputType(__v: _root_.scala.Predef.String): MethodDescriptorProto = copy(outputType = _root_.scala.Option(__v)) def getOptions: com.google.protobuf.descriptor.MethodOptions = options.getOrElse(com.google.protobuf.descriptor.MethodOptions.defaultInstance) def clearOptions: MethodDescriptorProto = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.MethodOptions): MethodDescriptorProto = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.MethodOptions): MethodDescriptorProto = copy(options = _root_.scala.Option(__v)) def getClientStreaming: _root_.scala.Boolean = clientStreaming.getOrElse(false) def clearClientStreaming: MethodDescriptorProto = copy(clientStreaming = _root_.scala.None) - def withClientStreaming(__v: _root_.scala.Boolean): MethodDescriptorProto = copy(clientStreaming = Option(__v)) + def withClientStreaming(__v: _root_.scala.Boolean): MethodDescriptorProto = copy(clientStreaming = _root_.scala.Option(__v)) def getServerStreaming: _root_.scala.Boolean = serverStreaming.getOrElse(false) def clearServerStreaming: MethodDescriptorProto = copy(serverStreaming = _root_.scala.None) - def withServerStreaming(__v: _root_.scala.Boolean): MethodDescriptorProto = copy(serverStreaming = Option(__v)) + def withServerStreaming(__v: _root_.scala.Boolean): MethodDescriptorProto = copy(serverStreaming = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 e2f9ee24d..4b28ca4fe 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 @@ -79,13 +79,13 @@ final case class MethodOptions( } def getDeprecated: _root_.scala.Boolean = deprecated.getOrElse(false) def clearDeprecated: MethodOptions = copy(deprecated = _root_.scala.None) - def withDeprecated(__v: _root_.scala.Boolean): MethodOptions = copy(deprecated = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): MethodOptions = copy(deprecated = _root_.scala.Option(__v)) def getIdempotencyLevel: com.google.protobuf.descriptor.MethodOptions.IdempotencyLevel = idempotencyLevel.getOrElse(com.google.protobuf.descriptor.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN) def clearIdempotencyLevel: MethodOptions = copy(idempotencyLevel = _root_.scala.None) - def withIdempotencyLevel(__v: com.google.protobuf.descriptor.MethodOptions.IdempotencyLevel): MethodOptions = copy(idempotencyLevel = Option(__v)) + def withIdempotencyLevel(__v: com.google.protobuf.descriptor.MethodOptions.IdempotencyLevel): MethodOptions = copy(idempotencyLevel = _root_.scala.Option(__v)) 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 = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): MethodOptions = copy(features = _root_.scala.Option(__v)) def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.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) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/OneofDescriptorProto.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/OneofDescriptorProto.scala index 306546574..35d856fcd 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/OneofDescriptorProto.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/descriptor/OneofDescriptorProto.scala @@ -50,10 +50,10 @@ final case class OneofDescriptorProto( } def getName: _root_.scala.Predef.String = name.getOrElse("") def clearName: OneofDescriptorProto = copy(name = _root_.scala.None) - def withName(__v: _root_.scala.Predef.String): OneofDescriptorProto = copy(name = Option(__v)) + def withName(__v: _root_.scala.Predef.String): OneofDescriptorProto = copy(name = _root_.scala.Option(__v)) def getOptions: com.google.protobuf.descriptor.OneofOptions = options.getOrElse(com.google.protobuf.descriptor.OneofOptions.defaultInstance) def clearOptions: OneofDescriptorProto = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.OneofOptions): OneofDescriptorProto = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.OneofOptions): OneofDescriptorProto = copy(options = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 931ee43eb..7f0962739 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 @@ -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 = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): OneofOptions = copy(features = _root_.scala.Option(__v)) def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.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) 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 e1665fb36..c53165f1e 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 @@ -62,14 +62,14 @@ 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 = Option(__v)) + def withName(__v: _root_.scala.Predef.String): ServiceDescriptorProto = copy(name = _root_.scala.Option(__v)) def clearMethod = copy(method = _root_.scala.Seq.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) def getOptions: com.google.protobuf.descriptor.ServiceOptions = options.getOrElse(com.google.protobuf.descriptor.ServiceOptions.defaultInstance) def clearOptions: ServiceDescriptorProto = copy(options = _root_.scala.None) - def withOptions(__v: com.google.protobuf.descriptor.ServiceOptions): ServiceDescriptorProto = copy(options = Option(__v)) + def withOptions(__v: com.google.protobuf.descriptor.ServiceOptions): ServiceDescriptorProto = copy(options = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 696dec3ef..e6b2504b6 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 @@ -70,10 +70,10 @@ final case class ServiceOptions( } def getFeatures: com.google.protobuf.descriptor.FeatureSet = features.getOrElse(com.google.protobuf.descriptor.FeatureSet.defaultInstance) def clearFeatures: ServiceOptions = copy(features = _root_.scala.None) - def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): ServiceOptions = copy(features = Option(__v)) + def withFeatures(__v: com.google.protobuf.descriptor.FeatureSet): ServiceOptions = copy(features = _root_.scala.Option(__v)) 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 = Option(__v)) + def withDeprecated(__v: _root_.scala.Boolean): ServiceOptions = copy(deprecated = _root_.scala.Option(__v)) def clearUninterpretedOption = copy(uninterpretedOption = _root_.scala.Seq.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) 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 b87855bb3..fbea7c9f6 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 @@ -342,10 +342,10 @@ object SourceCodeInfo extends scalapb.GeneratedMessageCompanion[com.google.proto def withSpan(__v: _root_.scala.Seq[_root_.scala.Int]): Location = copy(span = __v) def getLeadingComments: _root_.scala.Predef.String = leadingComments.getOrElse("") def clearLeadingComments: Location = copy(leadingComments = _root_.scala.None) - def withLeadingComments(__v: _root_.scala.Predef.String): Location = copy(leadingComments = Option(__v)) + def withLeadingComments(__v: _root_.scala.Predef.String): Location = copy(leadingComments = _root_.scala.Option(__v)) 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 = Option(__v)) + def withTrailingComments(__v: _root_.scala.Predef.String): Location = copy(trailingComments = _root_.scala.Option(__v)) def clearLeadingDetachedComments = copy(leadingDetachedComments = _root_.scala.Seq.empty) def addLeadingDetachedComments(__vs: _root_.scala.Predef.String *): Location = addAllLeadingDetachedComments(__vs) def addAllLeadingDetachedComments(__vs: Iterable[_root_.scala.Predef.String]): Location = copy(leadingDetachedComments = leadingDetachedComments ++ __vs) 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 b303b93f6..34e1043c4 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 @@ -109,22 +109,22 @@ final case class UninterpretedOption( def withName(__v: _root_.scala.Seq[com.google.protobuf.descriptor.UninterpretedOption.NamePart]): UninterpretedOption = copy(name = __v) def getIdentifierValue: _root_.scala.Predef.String = identifierValue.getOrElse("") def clearIdentifierValue: UninterpretedOption = copy(identifierValue = _root_.scala.None) - def withIdentifierValue(__v: _root_.scala.Predef.String): UninterpretedOption = copy(identifierValue = Option(__v)) + def withIdentifierValue(__v: _root_.scala.Predef.String): UninterpretedOption = copy(identifierValue = _root_.scala.Option(__v)) def getPositiveIntValue: _root_.scala.Long = positiveIntValue.getOrElse(0L) def clearPositiveIntValue: UninterpretedOption = copy(positiveIntValue = _root_.scala.None) - def withPositiveIntValue(__v: _root_.scala.Long): UninterpretedOption = copy(positiveIntValue = Option(__v)) + def withPositiveIntValue(__v: _root_.scala.Long): UninterpretedOption = copy(positiveIntValue = _root_.scala.Option(__v)) def getNegativeIntValue: _root_.scala.Long = negativeIntValue.getOrElse(0L) def clearNegativeIntValue: UninterpretedOption = copy(negativeIntValue = _root_.scala.None) - def withNegativeIntValue(__v: _root_.scala.Long): UninterpretedOption = copy(negativeIntValue = Option(__v)) + def withNegativeIntValue(__v: _root_.scala.Long): UninterpretedOption = copy(negativeIntValue = _root_.scala.Option(__v)) def getDoubleValue: _root_.scala.Double = doubleValue.getOrElse(0.0) def clearDoubleValue: UninterpretedOption = copy(doubleValue = _root_.scala.None) - def withDoubleValue(__v: _root_.scala.Double): UninterpretedOption = copy(doubleValue = Option(__v)) + def withDoubleValue(__v: _root_.scala.Double): UninterpretedOption = copy(doubleValue = _root_.scala.Option(__v)) def getStringValue: _root_.com.google.protobuf.ByteString = stringValue.getOrElse(_root_.com.google.protobuf.ByteString.EMPTY) def clearStringValue: UninterpretedOption = copy(stringValue = _root_.scala.None) - def withStringValue(__v: _root_.com.google.protobuf.ByteString): UninterpretedOption = copy(stringValue = Option(__v)) + def withStringValue(__v: _root_.com.google.protobuf.ByteString): UninterpretedOption = copy(stringValue = _root_.scala.Option(__v)) def getAggregateValue: _root_.scala.Predef.String = aggregateValue.getOrElse("") def clearAggregateValue: UninterpretedOption = copy(aggregateValue = _root_.scala.None) - def withAggregateValue(__v: _root_.scala.Predef.String): UninterpretedOption = copy(aggregateValue = Option(__v)) + def withAggregateValue(__v: _root_.scala.Predef.String): UninterpretedOption = copy(aggregateValue = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/struct/Struct.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/struct/Struct.scala index c0e98bdbe..982940ad6 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/struct/Struct.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/struct/Struct.scala @@ -183,7 +183,7 @@ object Struct extends scalapb.GeneratedMessageCompanion[com.google.protobuf.stru def withKey(__v: _root_.scala.Predef.String): FieldsEntry = copy(key = __v) def getValue: com.google.protobuf.struct.Value = value.getOrElse(com.google.protobuf.struct.Value.defaultInstance) def clearValue: FieldsEntry = copy(value = _root_.scala.None) - def withValue(__v: com.google.protobuf.struct.Value): FieldsEntry = copy(value = Option(__v)) + def withValue(__v: com.google.protobuf.struct.Value): FieldsEntry = copy(value = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 f2e7454ed..42e164cc0 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 @@ -128,7 +128,7 @@ final case class Enum( def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Enum = copy(options = __v) def getSourceContext: com.google.protobuf.source_context.SourceContext = sourceContext.getOrElse(com.google.protobuf.source_context.SourceContext.defaultInstance) def clearSourceContext: Enum = copy(sourceContext = _root_.scala.None) - def withSourceContext(__v: com.google.protobuf.source_context.SourceContext): Enum = copy(sourceContext = Option(__v)) + def withSourceContext(__v: com.google.protobuf.source_context.SourceContext): Enum = copy(sourceContext = _root_.scala.Option(__v)) def withSyntax(__v: com.google.protobuf.`type`.Syntax): Enum = copy(syntax = __v) def withEdition(__v: _root_.scala.Predef.String): Enum = copy(edition = __v) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) diff --git a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/OptionProto.scala b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/OptionProto.scala index 60b28cdc4..a7b103489 100644 --- a/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/OptionProto.scala +++ b/scalapb-runtime/src/main/scalajvm/com/google/protobuf/type/OptionProto.scala @@ -68,7 +68,7 @@ final case class OptionProto( def withName(__v: _root_.scala.Predef.String): OptionProto = copy(name = __v) def getValue: com.google.protobuf.any.Any = value.getOrElse(com.google.protobuf.any.Any.defaultInstance) def clearValue: OptionProto = copy(value = _root_.scala.None) - def withValue(__v: com.google.protobuf.any.Any): OptionProto = copy(value = Option(__v)) + def withValue(__v: com.google.protobuf.any.Any): OptionProto = copy(value = _root_.scala.Option(__v)) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v) def discardUnknownFields = copy(unknownFields = _root_.scalapb.UnknownFieldSet.empty) def getFieldByNumber(__fieldNumber: _root_.scala.Int): _root_.scala.Any = { 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 651144d21..ffcf9f14e 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 @@ -143,7 +143,7 @@ final case class Type( def withOptions(__v: _root_.scala.Seq[com.google.protobuf.`type`.OptionProto]): Type = copy(options = __v) def getSourceContext: com.google.protobuf.source_context.SourceContext = sourceContext.getOrElse(com.google.protobuf.source_context.SourceContext.defaultInstance) def clearSourceContext: Type = copy(sourceContext = _root_.scala.None) - def withSourceContext(__v: com.google.protobuf.source_context.SourceContext): Type = copy(sourceContext = Option(__v)) + def withSourceContext(__v: com.google.protobuf.source_context.SourceContext): Type = copy(sourceContext = _root_.scala.Option(__v)) def withSyntax(__v: com.google.protobuf.`type`.Syntax): Type = copy(syntax = __v) def withEdition(__v: _root_.scala.Predef.String): Type = copy(edition = __v) def withUnknownFields(__v: _root_.scalapb.UnknownFieldSet) = copy(unknownFields = __v)