All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalapb.com.eventstore.dbclient.proto.shared.WrongExpectedVersion.scala Maven / Gradle / Ivy

The newest version!
// Generated by the Scala Plugin for the Protocol Buffer Compiler.
// Do not edit!
//
// Protofile syntax: PROTO3

package com.eventstore.dbclient.proto.shared

@SerialVersionUID(0L)
final case class WrongExpectedVersion(
    currentStreamRevisionOption: com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption.Empty,
    expectedStreamPositionOption: com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.Empty,
    unknownFields: _root_.scalapb.UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty
    ) extends scalapb.GeneratedMessage {
    @transient
    private var __serializedSizeMemoized: _root_.scala.Int = 0
    private def __computeSerializedSize(): _root_.scala.Int = {
      var __size = 0
      if (currentStreamRevisionOption.currentStreamRevision.isDefined) {
        val __value = currentStreamRevisionOption.currentStreamRevision.get
        __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(1, __value)
      };
      if (currentStreamRevisionOption.currentNoStream.isDefined) {
        val __value = currentStreamRevisionOption.currentNoStream.get
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      };
      if (expectedStreamPositionOption.expectedStreamPosition.isDefined) {
        val __value = expectedStreamPositionOption.expectedStreamPosition.get
        __size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(3, __value)
      };
      if (expectedStreamPositionOption.expectedAny.isDefined) {
        val __value = expectedStreamPositionOption.expectedAny.get
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      };
      if (expectedStreamPositionOption.expectedStreamExists.isDefined) {
        val __value = expectedStreamPositionOption.expectedStreamExists.get
        __size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
      };
      if (expectedStreamPositionOption.expectedNoStream.isDefined) {
        val __value = expectedStreamPositionOption.expectedNoStream.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 = {
      currentStreamRevisionOption.currentStreamRevision.foreach { __v =>
        val __m = __v
        _output__.writeUInt64(1, __m)
      };
      currentStreamRevisionOption.currentNoStream.foreach { __v =>
        val __m = __v
        _output__.writeTag(2, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      expectedStreamPositionOption.expectedStreamPosition.foreach { __v =>
        val __m = __v
        _output__.writeUInt64(3, __m)
      };
      expectedStreamPositionOption.expectedAny.foreach { __v =>
        val __m = __v
        _output__.writeTag(4, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      expectedStreamPositionOption.expectedStreamExists.foreach { __v =>
        val __m = __v
        _output__.writeTag(5, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      expectedStreamPositionOption.expectedNoStream.foreach { __v =>
        val __m = __v
        _output__.writeTag(6, 2)
        _output__.writeUInt32NoTag(__m.serializedSize)
        __m.writeTo(_output__)
      };
      unknownFields.writeTo(_output__)
    }
    def getCurrentStreamRevision: _root_.scala.Long = currentStreamRevisionOption.currentStreamRevision.getOrElse(0L)
    def withCurrentStreamRevision(__v: _root_.scala.Long): WrongExpectedVersion = copy(currentStreamRevisionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption.CurrentStreamRevision(__v))
    def getCurrentNoStream: com.google.protobuf.empty.Empty = currentStreamRevisionOption.currentNoStream.getOrElse(com.google.protobuf.empty.Empty.defaultInstance)
    def withCurrentNoStream(__v: com.google.protobuf.empty.Empty): WrongExpectedVersion = copy(currentStreamRevisionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption.CurrentNoStream(__v))
    def getExpectedStreamPosition: _root_.scala.Long = expectedStreamPositionOption.expectedStreamPosition.getOrElse(0L)
    def withExpectedStreamPosition(__v: _root_.scala.Long): WrongExpectedVersion = copy(expectedStreamPositionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.ExpectedStreamPosition(__v))
    def getExpectedAny: com.google.protobuf.empty.Empty = expectedStreamPositionOption.expectedAny.getOrElse(com.google.protobuf.empty.Empty.defaultInstance)
    def withExpectedAny(__v: com.google.protobuf.empty.Empty): WrongExpectedVersion = copy(expectedStreamPositionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.ExpectedAny(__v))
    def getExpectedStreamExists: com.google.protobuf.empty.Empty = expectedStreamPositionOption.expectedStreamExists.getOrElse(com.google.protobuf.empty.Empty.defaultInstance)
    def withExpectedStreamExists(__v: com.google.protobuf.empty.Empty): WrongExpectedVersion = copy(expectedStreamPositionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.ExpectedStreamExists(__v))
    def getExpectedNoStream: com.google.protobuf.empty.Empty = expectedStreamPositionOption.expectedNoStream.getOrElse(com.google.protobuf.empty.Empty.defaultInstance)
    def withExpectedNoStream(__v: com.google.protobuf.empty.Empty): WrongExpectedVersion = copy(expectedStreamPositionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.ExpectedNoStream(__v))
    def clearCurrentStreamRevisionOption: WrongExpectedVersion = copy(currentStreamRevisionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption.Empty)
    def withCurrentStreamRevisionOption(__v: com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption): WrongExpectedVersion = copy(currentStreamRevisionOption = __v)
    def clearExpectedStreamPositionOption: WrongExpectedVersion = copy(expectedStreamPositionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.Empty)
    def withExpectedStreamPositionOption(__v: com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption): WrongExpectedVersion = copy(expectedStreamPositionOption = __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 => currentStreamRevisionOption.currentStreamRevision.orNull
        case 2 => currentStreamRevisionOption.currentNoStream.orNull
        case 3 => expectedStreamPositionOption.expectedStreamPosition.orNull
        case 4 => expectedStreamPositionOption.expectedAny.orNull
        case 5 => expectedStreamPositionOption.expectedStreamExists.orNull
        case 6 => expectedStreamPositionOption.expectedNoStream.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 => currentStreamRevisionOption.currentStreamRevision.map(_root_.scalapb.descriptors.PLong(_)).getOrElse(_root_.scalapb.descriptors.PEmpty)
        case 2 => currentStreamRevisionOption.currentNoStream.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
        case 3 => expectedStreamPositionOption.expectedStreamPosition.map(_root_.scalapb.descriptors.PLong(_)).getOrElse(_root_.scalapb.descriptors.PEmpty)
        case 4 => expectedStreamPositionOption.expectedAny.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
        case 5 => expectedStreamPositionOption.expectedStreamExists.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
        case 6 => expectedStreamPositionOption.expectedNoStream.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
      }
    }
    def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
    def companion: com.eventstore.dbclient.proto.shared.WrongExpectedVersion.type = com.eventstore.dbclient.proto.shared.WrongExpectedVersion
    // @@protoc_insertion_point(GeneratedMessage[event_store.client.WrongExpectedVersion])
}

@scala.annotation.nowarn
object WrongExpectedVersion extends scalapb.GeneratedMessageCompanion[com.eventstore.dbclient.proto.shared.WrongExpectedVersion] {
  implicit def messageCompanion: scalapb.GeneratedMessageCompanion[com.eventstore.dbclient.proto.shared.WrongExpectedVersion] = this
  def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): com.eventstore.dbclient.proto.shared.WrongExpectedVersion = {
    var __currentStreamRevisionOption: com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption.Empty
    var __expectedStreamPositionOption: com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.Empty
    var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
    var _done__ = false
    while (!_done__) {
      val _tag__ = _input__.readTag()
      _tag__ match {
        case 0 => _done__ = true
        case 8 =>
          __currentStreamRevisionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption.CurrentStreamRevision(_input__.readUInt64())
        case 18 =>
          __currentStreamRevisionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption.CurrentNoStream(__currentStreamRevisionOption.currentNoStream.fold(_root_.scalapb.LiteParser.readMessage[com.google.protobuf.empty.Empty](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
        case 24 =>
          __expectedStreamPositionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.ExpectedStreamPosition(_input__.readUInt64())
        case 34 =>
          __expectedStreamPositionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.ExpectedAny(__expectedStreamPositionOption.expectedAny.fold(_root_.scalapb.LiteParser.readMessage[com.google.protobuf.empty.Empty](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
        case 42 =>
          __expectedStreamPositionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.ExpectedStreamExists(__expectedStreamPositionOption.expectedStreamExists.fold(_root_.scalapb.LiteParser.readMessage[com.google.protobuf.empty.Empty](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
        case 50 =>
          __expectedStreamPositionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.ExpectedNoStream(__expectedStreamPositionOption.expectedNoStream.fold(_root_.scalapb.LiteParser.readMessage[com.google.protobuf.empty.Empty](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
        case tag =>
          if (_unknownFields__ == null) {
            _unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
          }
          _unknownFields__.parseField(tag, _input__)
      }
    }
    com.eventstore.dbclient.proto.shared.WrongExpectedVersion(
        currentStreamRevisionOption = __currentStreamRevisionOption,
        expectedStreamPositionOption = __expectedStreamPositionOption,
        unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
    )
  }
  implicit def messageReads: _root_.scalapb.descriptors.Reads[com.eventstore.dbclient.proto.shared.WrongExpectedVersion] = _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.eventstore.dbclient.proto.shared.WrongExpectedVersion(
        currentStreamRevisionOption = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).flatMap(_.as[_root_.scala.Option[_root_.scala.Long]]).map(com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption.CurrentStreamRevision(_))
            .orElse[com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption](__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[com.google.protobuf.empty.Empty]]).map(com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption.CurrentNoStream(_)))
            .getOrElse(com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption.Empty),
        expectedStreamPositionOption = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).flatMap(_.as[_root_.scala.Option[_root_.scala.Long]]).map(com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.ExpectedStreamPosition(_))
            .orElse[com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption](__fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).flatMap(_.as[_root_.scala.Option[com.google.protobuf.empty.Empty]]).map(com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.ExpectedAny(_)))
            .orElse[com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption](__fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).flatMap(_.as[_root_.scala.Option[com.google.protobuf.empty.Empty]]).map(com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.ExpectedStreamExists(_)))
            .orElse[com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption](__fieldsMap.get(scalaDescriptor.findFieldByNumber(6).get).flatMap(_.as[_root_.scala.Option[com.google.protobuf.empty.Empty]]).map(com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.ExpectedNoStream(_)))
            .getOrElse(com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.Empty)
      )
    case _ => throw new RuntimeException("Expected PMessage")
  }
  def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = SharedProto.javaDescriptor.getMessageTypes().get(4)
  def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = SharedProto.scalaDescriptor.messages(4)
  def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[?] = {
    var __out: _root_.scalapb.GeneratedMessageCompanion[?] = null
    (__number: @_root_.scala.unchecked) match {
      case 2 => __out = com.google.protobuf.empty.Empty
      case 4 => __out = com.google.protobuf.empty.Empty
      case 5 => __out = com.google.protobuf.empty.Empty
      case 6 => __out = com.google.protobuf.empty.Empty
    }
    __out
  }
  lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[? <: _root_.scalapb.GeneratedMessage]] = Seq.empty
  def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[?] = throw new MatchError(__fieldNumber)
  lazy val defaultInstance = com.eventstore.dbclient.proto.shared.WrongExpectedVersion(
    currentStreamRevisionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption.Empty,
    expectedStreamPositionOption = com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption.Empty
  )
  sealed trait CurrentStreamRevisionOption extends _root_.scalapb.GeneratedOneof {
    def isEmpty: _root_.scala.Boolean = false
    def isDefined: _root_.scala.Boolean = true
    def isCurrentStreamRevision: _root_.scala.Boolean = false
    def isCurrentNoStream: _root_.scala.Boolean = false
    def currentStreamRevision: _root_.scala.Option[_root_.scala.Long] = _root_.scala.None
    def currentNoStream: _root_.scala.Option[com.google.protobuf.empty.Empty] = _root_.scala.None
  }
  object CurrentStreamRevisionOption {
    @SerialVersionUID(0L)
    case object Empty extends com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption {
      type ValueType = _root_.scala.Nothing
      override def isEmpty: _root_.scala.Boolean = true
      override def isDefined: _root_.scala.Boolean = false
      override def number: _root_.scala.Int = 0
      override def value: _root_.scala.Nothing = throw new java.util.NoSuchElementException("Empty.value")
    }
  
    @SerialVersionUID(0L)
    final case class CurrentStreamRevision(value: _root_.scala.Long) extends com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption {
      type ValueType = _root_.scala.Long
      override def isCurrentStreamRevision: _root_.scala.Boolean = true
      override def currentStreamRevision: _root_.scala.Option[_root_.scala.Long] = Some(value)
      override def number: _root_.scala.Int = 1
    }
    @SerialVersionUID(0L)
    final case class CurrentNoStream(value: com.google.protobuf.empty.Empty) extends com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption {
      type ValueType = com.google.protobuf.empty.Empty
      override def isCurrentNoStream: _root_.scala.Boolean = true
      override def currentNoStream: _root_.scala.Option[com.google.protobuf.empty.Empty] = Some(value)
      override def number: _root_.scala.Int = 2
    }
  }
  sealed trait ExpectedStreamPositionOption extends _root_.scalapb.GeneratedOneof {
    def isEmpty: _root_.scala.Boolean = false
    def isDefined: _root_.scala.Boolean = true
    def isExpectedStreamPosition: _root_.scala.Boolean = false
    def isExpectedAny: _root_.scala.Boolean = false
    def isExpectedStreamExists: _root_.scala.Boolean = false
    def isExpectedNoStream: _root_.scala.Boolean = false
    def expectedStreamPosition: _root_.scala.Option[_root_.scala.Long] = _root_.scala.None
    def expectedAny: _root_.scala.Option[com.google.protobuf.empty.Empty] = _root_.scala.None
    def expectedStreamExists: _root_.scala.Option[com.google.protobuf.empty.Empty] = _root_.scala.None
    def expectedNoStream: _root_.scala.Option[com.google.protobuf.empty.Empty] = _root_.scala.None
  }
  object ExpectedStreamPositionOption {
    @SerialVersionUID(0L)
    case object Empty extends com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption {
      type ValueType = _root_.scala.Nothing
      override def isEmpty: _root_.scala.Boolean = true
      override def isDefined: _root_.scala.Boolean = false
      override def number: _root_.scala.Int = 0
      override def value: _root_.scala.Nothing = throw new java.util.NoSuchElementException("Empty.value")
    }
  
    @SerialVersionUID(0L)
    final case class ExpectedStreamPosition(value: _root_.scala.Long) extends com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption {
      type ValueType = _root_.scala.Long
      override def isExpectedStreamPosition: _root_.scala.Boolean = true
      override def expectedStreamPosition: _root_.scala.Option[_root_.scala.Long] = Some(value)
      override def number: _root_.scala.Int = 3
    }
    @SerialVersionUID(0L)
    final case class ExpectedAny(value: com.google.protobuf.empty.Empty) extends com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption {
      type ValueType = com.google.protobuf.empty.Empty
      override def isExpectedAny: _root_.scala.Boolean = true
      override def expectedAny: _root_.scala.Option[com.google.protobuf.empty.Empty] = Some(value)
      override def number: _root_.scala.Int = 4
    }
    @SerialVersionUID(0L)
    final case class ExpectedStreamExists(value: com.google.protobuf.empty.Empty) extends com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption {
      type ValueType = com.google.protobuf.empty.Empty
      override def isExpectedStreamExists: _root_.scala.Boolean = true
      override def expectedStreamExists: _root_.scala.Option[com.google.protobuf.empty.Empty] = Some(value)
      override def number: _root_.scala.Int = 5
    }
    @SerialVersionUID(0L)
    final case class ExpectedNoStream(value: com.google.protobuf.empty.Empty) extends com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption {
      type ValueType = com.google.protobuf.empty.Empty
      override def isExpectedNoStream: _root_.scala.Boolean = true
      override def expectedNoStream: _root_.scala.Option[com.google.protobuf.empty.Empty] = Some(value)
      override def number: _root_.scala.Int = 6
    }
  }
  final val CURRENT_STREAM_REVISION_FIELD_NUMBER = 1
  final val CURRENT_NO_STREAM_FIELD_NUMBER = 2
  final val EXPECTED_STREAM_POSITION_FIELD_NUMBER = 3
  final val EXPECTED_ANY_FIELD_NUMBER = 4
  final val EXPECTED_STREAM_EXISTS_FIELD_NUMBER = 5
  final val EXPECTED_NO_STREAM_FIELD_NUMBER = 6
  def of(
    currentStreamRevisionOption: com.eventstore.dbclient.proto.shared.WrongExpectedVersion.CurrentStreamRevisionOption,
    expectedStreamPositionOption: com.eventstore.dbclient.proto.shared.WrongExpectedVersion.ExpectedStreamPositionOption
  ): _root_.com.eventstore.dbclient.proto.shared.WrongExpectedVersion = _root_.com.eventstore.dbclient.proto.shared.WrongExpectedVersion(
    currentStreamRevisionOption,
    expectedStreamPositionOption
  )
  // @@protoc_insertion_point(GeneratedMessageCompanion[event_store.client.WrongExpectedVersion])
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy