Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.google.protobuf.descriptor.FeatureSetDefaults.scala Maven / Gradle / Ivy
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
package com.google.protobuf.descriptor
/** A compiled specification for the defaults of a set of features. These
* messages are generated from FeatureSet extensions and can be used to seed
* feature resolution. The resolution with this object becomes a simple search
* for the closest matching edition, followed by proto merges.
*
* @param minimumEdition
* The minimum supported edition (inclusive) when this was constructed.
* Editions before this will not have defaults.
* @param maximumEdition
* The maximum known edition (inclusive) when this was constructed. Editions
* after this will not have reliable defaults.
*/
@SerialVersionUID(0L)
final case class FeatureSetDefaults(
defaults: _root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault] = _root_.scala.Seq.empty,
minimumEdition: _root_.scala.Option[com.google.protobuf.descriptor.Edition] = _root_.scala.None,
maximumEdition: _root_.scala.Option[com.google.protobuf.descriptor.Edition] = _root_.scala.None,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[FeatureSetDefaults] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
defaults.foreach { __item =>
val __value = __item
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
if (minimumEdition.isDefined) {
val __value = minimumEdition.get.value
__size += _root_.com.google.protobuf.CodedOutputStream.computeEnumSize(4, __value)
};
if (maximumEdition.isDefined) {
val __value = maximumEdition.get.value
__size += _root_.com.google.protobuf.CodedOutputStream.computeEnumSize(5, __value)
};
__size += unknownFields.serializedSize
__size
}
override def serializedSize: _root_.scala.Int = {
var __size = __serializedSizeMemoized
if (__size == 0) {
__size = __computeSerializedSize() + 1
__serializedSizeMemoized = __size
}
__size - 1
}
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
defaults.foreach { __v =>
val __m = __v
_output__.writeTag(1, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
minimumEdition.foreach { __v =>
val __m = __v.value
_output__.writeEnum(4, __m)
};
maximumEdition.foreach { __v =>
val __m = __v.value
_output__.writeEnum(5, __m)
};
unknownFields.writeTo(_output__)
}
def clearDefaults = copy(defaults = _root_.scala.Seq.empty)
def addDefaults(__vs: com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault *): FeatureSetDefaults = addAllDefaults(__vs)
def addAllDefaults(__vs: Iterable[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault]): FeatureSetDefaults = copy(defaults = defaults ++ __vs)
def withDefaults(__v: _root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault]): FeatureSetDefaults = copy(defaults = __v)
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 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 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 = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 1 => defaults
case 4 => minimumEdition.map(_.javaValueDescriptor).orNull
case 5 => maximumEdition.map(_.javaValueDescriptor).orNull
}
}
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
_root_.scala.Predef.require(__field.containingMessage eq companion.scalaDescriptor)
(__field.number: @_root_.scala.unchecked) match {
case 1 => _root_.scalapb.descriptors.PRepeated(defaults.iterator.map(_.toPMessage).toVector)
case 4 => minimumEdition.map(__e => _root_.scalapb.descriptors.PEnum(__e.scalaValueDescriptor)).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 5 => maximumEdition.map(__e => _root_.scalapb.descriptors.PEnum(__e.scalaValueDescriptor)).getOrElse(_root_.scalapb.descriptors.PEmpty)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: com.google.protobuf.descriptor.FeatureSetDefaults.type = com.google.protobuf.descriptor.FeatureSetDefaults
// @@protoc_insertion_point(GeneratedMessage[google.protobuf.FeatureSetDefaults])
}
object FeatureSetDefaults extends scalapb.GeneratedMessageCompanion[com.google.protobuf.descriptor.FeatureSetDefaults] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[com.google.protobuf.descriptor.FeatureSetDefaults] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): com.google.protobuf.descriptor.FeatureSetDefaults = {
val __defaults: _root_.scala.collection.immutable.VectorBuilder[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault] = new _root_.scala.collection.immutable.VectorBuilder[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault]
var __minimumEdition: _root_.scala.Option[com.google.protobuf.descriptor.Edition] = _root_.scala.None
var __maximumEdition: _root_.scala.Option[com.google.protobuf.descriptor.Edition] = _root_.scala.None
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__defaults += _root_.scalapb.LiteParser.readMessage[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault](_input__)
case 32 =>
__minimumEdition = _root_.scala.Option(com.google.protobuf.descriptor.Edition.fromValue(_input__.readEnum()))
case 40 =>
__maximumEdition = _root_.scala.Option(com.google.protobuf.descriptor.Edition.fromValue(_input__.readEnum()))
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
com.google.protobuf.descriptor.FeatureSetDefaults(
defaults = __defaults.result(),
minimumEdition = __minimumEdition,
maximumEdition = __maximumEdition,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[com.google.protobuf.descriptor.FeatureSetDefaults] = _root_.scalapb.descriptors.Reads{
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
_root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
com.google.protobuf.descriptor.FeatureSetDefaults(
defaults = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault]]).getOrElse(_root_.scala.Seq.empty),
minimumEdition = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).flatMap(_.as[_root_.scala.Option[_root_.scalapb.descriptors.EnumValueDescriptor]]).map(__e => com.google.protobuf.descriptor.Edition.fromValue(__e.number)),
maximumEdition = __fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).flatMap(_.as[_root_.scala.Option[_root_.scalapb.descriptors.EnumValueDescriptor]]).map(__e => com.google.protobuf.descriptor.Edition.fromValue(__e.number))
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = com.google.protobuf.descriptor.DescriptorProtoCompanion.javaDescriptor.getMessageTypes().get(20)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = com.google.protobuf.descriptor.DescriptorProtoCompanion.scalaDescriptor.messages(20)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 1 => __out = com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] =
Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]](
_root_.com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault
)
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 4 => com.google.protobuf.descriptor.Edition
case 5 => com.google.protobuf.descriptor.Edition
}
}
lazy val defaultInstance = com.google.protobuf.descriptor.FeatureSetDefaults(
defaults = _root_.scala.Seq.empty,
minimumEdition = _root_.scala.None,
maximumEdition = _root_.scala.None
)
/** A map from every known edition with a unique set of defaults to its
* defaults. Not all editions may be contained here. For a given edition,
* the defaults at the closest matching edition ordered at or before it should
* be used. This field must be in strict ascending order by edition.
*
* @param overridableFeatures
* Defaults of features that can be overridden in this edition.
* @param fixedFeatures
* Defaults of features that can't be overridden in this edition.
*/
@SerialVersionUID(0L)
final case class FeatureSetEditionDefault(
edition: _root_.scala.Option[com.google.protobuf.descriptor.Edition] = _root_.scala.None,
overridableFeatures: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None,
fixedFeatures: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None,
unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
) extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[FeatureSetEditionDefault] {
@transient
private[this] var __serializedSizeMemoized: _root_.scala.Int = 0
private[this] def __computeSerializedSize(): _root_.scala.Int = {
var __size = 0
if (edition.isDefined) {
val __value = edition.get.value
__size += _root_.com.google.protobuf.CodedOutputStream.computeEnumSize(3, __value)
};
if (overridableFeatures.isDefined) {
val __value = overridableFeatures.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (fixedFeatures.isDefined) {
val __value = fixedFeatures.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
__size += unknownFields.serializedSize
__size
}
override def serializedSize: _root_.scala.Int = {
var __size = __serializedSizeMemoized
if (__size == 0) {
__size = __computeSerializedSize() + 1
__serializedSizeMemoized = __size
}
__size - 1
}
def writeTo(`_output__`: _root_.com.google.protobuf.CodedOutputStream): _root_.scala.Unit = {
edition.foreach { __v =>
val __m = __v.value
_output__.writeEnum(3, __m)
};
overridableFeatures.foreach { __v =>
val __m = __v
_output__.writeTag(4, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
fixedFeatures.foreach { __v =>
val __m = __v
_output__.writeTag(5, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
unknownFields.writeTo(_output__)
}
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 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 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 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 = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 3 => edition.map(_.javaValueDescriptor).orNull
case 4 => overridableFeatures.orNull
case 5 => fixedFeatures.orNull
}
}
def getField(__field: _root_.scalapb.descriptors.FieldDescriptor): _root_.scalapb.descriptors.PValue = {
_root_.scala.Predef.require(__field.containingMessage eq companion.scalaDescriptor)
(__field.number: @_root_.scala.unchecked) match {
case 3 => edition.map(__e => _root_.scalapb.descriptors.PEnum(__e.scalaValueDescriptor)).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 4 => overridableFeatures.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 5 => fixedFeatures.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault.type = com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault
// @@protoc_insertion_point(GeneratedMessage[google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault])
}
object FeatureSetEditionDefault extends scalapb.GeneratedMessageCompanion[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault = {
var __edition: _root_.scala.Option[com.google.protobuf.descriptor.Edition] = _root_.scala.None
var __overridableFeatures: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None
var __fixedFeatures: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet] = _root_.scala.None
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 24 =>
__edition = _root_.scala.Option(com.google.protobuf.descriptor.Edition.fromValue(_input__.readEnum()))
case 34 =>
__overridableFeatures = _root_.scala.Option(__overridableFeatures.fold(_root_.scalapb.LiteParser.readMessage[com.google.protobuf.descriptor.FeatureSet](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 42 =>
__fixedFeatures = _root_.scala.Option(__fixedFeatures.fold(_root_.scalapb.LiteParser.readMessage[com.google.protobuf.descriptor.FeatureSet](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault(
edition = __edition,
overridableFeatures = __overridableFeatures,
fixedFeatures = __fixedFeatures,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault] = _root_.scalapb.descriptors.Reads{
case _root_.scalapb.descriptors.PMessage(__fieldsMap) =>
_root_.scala.Predef.require(__fieldsMap.keys.forall(_.containingMessage eq scalaDescriptor), "FieldDescriptor does not match message type.")
com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault(
edition = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).flatMap(_.as[_root_.scala.Option[_root_.scalapb.descriptors.EnumValueDescriptor]]).map(__e => com.google.protobuf.descriptor.Edition.fromValue(__e.number)),
overridableFeatures = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).flatMap(_.as[_root_.scala.Option[com.google.protobuf.descriptor.FeatureSet]]),
fixedFeatures = __fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).flatMap(_.as[_root_.scala.Option[com.google.protobuf.descriptor.FeatureSet]])
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = com.google.protobuf.descriptor.FeatureSetDefaults.javaDescriptor.getNestedTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = com.google.protobuf.descriptor.FeatureSetDefaults.scalaDescriptor.nestedMessages(0)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[_] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
(__number: @_root_.scala.unchecked) match {
case 4 => __out = com.google.protobuf.descriptor.FeatureSet
case 5 => __out = com.google.protobuf.descriptor.FeatureSet
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[_ <: _root_.scalapb.GeneratedMessage]] = Seq.empty
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[_] = {
(__fieldNumber: @_root_.scala.unchecked) match {
case 3 => com.google.protobuf.descriptor.Edition
}
}
lazy val defaultInstance = com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault(
edition = _root_.scala.None,
overridableFeatures = _root_.scala.None,
fixedFeatures = _root_.scala.None
)
implicit class FeatureSetEditionDefaultLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault](_l) {
def edition: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.Edition] = field(_.getEdition)((c_, f_) => c_.copy(edition = _root_.scala.Option(f_)))
def optionalEdition: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[com.google.protobuf.descriptor.Edition]] = field(_.edition)((c_, f_) => c_.copy(edition = f_))
def overridableFeatures: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.FeatureSet] = field(_.getOverridableFeatures)((c_, f_) => c_.copy(overridableFeatures = _root_.scala.Option(f_)))
def optionalOverridableFeatures: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet]] = field(_.overridableFeatures)((c_, f_) => c_.copy(overridableFeatures = f_))
def fixedFeatures: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.FeatureSet] = field(_.getFixedFeatures)((c_, f_) => c_.copy(fixedFeatures = _root_.scala.Option(f_)))
def optionalFixedFeatures: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet]] = field(_.fixedFeatures)((c_, f_) => c_.copy(fixedFeatures = f_))
}
final val EDITION_FIELD_NUMBER = 3
final val OVERRIDABLE_FEATURES_FIELD_NUMBER = 4
final val FIXED_FEATURES_FIELD_NUMBER = 5
def of(
edition: _root_.scala.Option[com.google.protobuf.descriptor.Edition],
overridableFeatures: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet],
fixedFeatures: _root_.scala.Option[com.google.protobuf.descriptor.FeatureSet]
): _root_.com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault = _root_.com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault(
edition,
overridableFeatures,
fixedFeatures
)
// @@protoc_insertion_point(GeneratedMessageCompanion[google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault])
}
implicit class FeatureSetDefaultsLens[UpperPB](_l: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.FeatureSetDefaults]) extends _root_.scalapb.lenses.ObjectLens[UpperPB, com.google.protobuf.descriptor.FeatureSetDefaults](_l) {
def defaults: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault]] = field(_.defaults)((c_, f_) => c_.copy(defaults = f_))
def minimumEdition: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.Edition] = field(_.getMinimumEdition)((c_, f_) => c_.copy(minimumEdition = _root_.scala.Option(f_)))
def optionalMinimumEdition: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[com.google.protobuf.descriptor.Edition]] = field(_.minimumEdition)((c_, f_) => c_.copy(minimumEdition = f_))
def maximumEdition: _root_.scalapb.lenses.Lens[UpperPB, com.google.protobuf.descriptor.Edition] = field(_.getMaximumEdition)((c_, f_) => c_.copy(maximumEdition = _root_.scala.Option(f_)))
def optionalMaximumEdition: _root_.scalapb.lenses.Lens[UpperPB, _root_.scala.Option[com.google.protobuf.descriptor.Edition]] = field(_.maximumEdition)((c_, f_) => c_.copy(maximumEdition = f_))
}
final val DEFAULTS_FIELD_NUMBER = 1
final val MINIMUM_EDITION_FIELD_NUMBER = 4
final val MAXIMUM_EDITION_FIELD_NUMBER = 5
def of(
defaults: _root_.scala.Seq[com.google.protobuf.descriptor.FeatureSetDefaults.FeatureSetEditionDefault],
minimumEdition: _root_.scala.Option[com.google.protobuf.descriptor.Edition],
maximumEdition: _root_.scala.Option[com.google.protobuf.descriptor.Edition]
): _root_.com.google.protobuf.descriptor.FeatureSetDefaults = _root_.com.google.protobuf.descriptor.FeatureSetDefaults(
defaults,
minimumEdition,
maximumEdition
)
// @@protoc_insertion_point(GeneratedMessageCompanion[google.protobuf.FeatureSetDefaults])
}