scalapb.com.eventstore.dbclient.proto.streams.AppendReq.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.streams
@SerialVersionUID(0L)
final case class AppendReq(
content: com.eventstore.dbclient.proto.streams.AppendReq.Content = com.eventstore.dbclient.proto.streams.AppendReq.Content.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 (content.options.isDefined) {
val __value = content.options.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (content.proposedMessage.isDefined) {
val __value = content.proposedMessage.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 = {
content.options.foreach { __v =>
val __m = __v
_output__.writeTag(1, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
content.proposedMessage.foreach { __v =>
val __m = __v
_output__.writeTag(2, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
unknownFields.writeTo(_output__)
}
def getOptions: com.eventstore.dbclient.proto.streams.AppendReq.Options = content.options.getOrElse(com.eventstore.dbclient.proto.streams.AppendReq.Options.defaultInstance)
def withOptions(__v: com.eventstore.dbclient.proto.streams.AppendReq.Options): AppendReq = copy(content = com.eventstore.dbclient.proto.streams.AppendReq.Content.Options(__v))
def getProposedMessage: com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage = content.proposedMessage.getOrElse(com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.defaultInstance)
def withProposedMessage(__v: com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage): AppendReq = copy(content = com.eventstore.dbclient.proto.streams.AppendReq.Content.ProposedMessage(__v))
def clearContent: AppendReq = copy(content = com.eventstore.dbclient.proto.streams.AppendReq.Content.Empty)
def withContent(__v: com.eventstore.dbclient.proto.streams.AppendReq.Content): AppendReq = copy(content = __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 => content.options.orNull
case 2 => content.proposedMessage.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 => content.options.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 2 => content.proposedMessage.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: com.eventstore.dbclient.proto.streams.AppendReq.type = com.eventstore.dbclient.proto.streams.AppendReq
// @@protoc_insertion_point(GeneratedMessage[event_store.client.streams.AppendReq])
}
@scala.annotation.nowarn
object AppendReq extends scalapb.GeneratedMessageCompanion[com.eventstore.dbclient.proto.streams.AppendReq] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[com.eventstore.dbclient.proto.streams.AppendReq] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): com.eventstore.dbclient.proto.streams.AppendReq = {
var __content: com.eventstore.dbclient.proto.streams.AppendReq.Content = com.eventstore.dbclient.proto.streams.AppendReq.Content.Empty
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__content = com.eventstore.dbclient.proto.streams.AppendReq.Content.Options(__content.options.fold(_root_.scalapb.LiteParser.readMessage[com.eventstore.dbclient.proto.streams.AppendReq.Options](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 18 =>
__content = com.eventstore.dbclient.proto.streams.AppendReq.Content.ProposedMessage(__content.proposedMessage.fold(_root_.scalapb.LiteParser.readMessage[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage](_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.streams.AppendReq(
content = __content,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[com.eventstore.dbclient.proto.streams.AppendReq] = _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.streams.AppendReq(
content = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).flatMap(_.as[_root_.scala.Option[com.eventstore.dbclient.proto.streams.AppendReq.Options]]).map(com.eventstore.dbclient.proto.streams.AppendReq.Content.Options(_))
.orElse[com.eventstore.dbclient.proto.streams.AppendReq.Content](__fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage]]).map(com.eventstore.dbclient.proto.streams.AppendReq.Content.ProposedMessage(_)))
.getOrElse(com.eventstore.dbclient.proto.streams.AppendReq.Content.Empty)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = StreamsProto.javaDescriptor.getMessageTypes().get(2)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = StreamsProto.scalaDescriptor.messages(2)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[?] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[?] = null
(__number: @_root_.scala.unchecked) match {
case 1 => __out = com.eventstore.dbclient.proto.streams.AppendReq.Options
case 2 => __out = com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[? <: _root_.scalapb.GeneratedMessage]] =
Seq[_root_.scalapb.GeneratedMessageCompanion[? <: _root_.scalapb.GeneratedMessage]](
_root_.com.eventstore.dbclient.proto.streams.AppendReq.Options,
_root_.com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage
)
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[?] = throw new MatchError(__fieldNumber)
lazy val defaultInstance = com.eventstore.dbclient.proto.streams.AppendReq(
content = com.eventstore.dbclient.proto.streams.AppendReq.Content.Empty
)
sealed trait Content extends _root_.scalapb.GeneratedOneof {
def isEmpty: _root_.scala.Boolean = false
def isDefined: _root_.scala.Boolean = true
def isOptions: _root_.scala.Boolean = false
def isProposedMessage: _root_.scala.Boolean = false
def options: _root_.scala.Option[com.eventstore.dbclient.proto.streams.AppendReq.Options] = _root_.scala.None
def proposedMessage: _root_.scala.Option[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage] = _root_.scala.None
}
object Content {
@SerialVersionUID(0L)
case object Empty extends com.eventstore.dbclient.proto.streams.AppendReq.Content {
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 Options(value: com.eventstore.dbclient.proto.streams.AppendReq.Options) extends com.eventstore.dbclient.proto.streams.AppendReq.Content {
type ValueType = com.eventstore.dbclient.proto.streams.AppendReq.Options
override def isOptions: _root_.scala.Boolean = true
override def options: _root_.scala.Option[com.eventstore.dbclient.proto.streams.AppendReq.Options] = Some(value)
override def number: _root_.scala.Int = 1
}
@SerialVersionUID(0L)
final case class ProposedMessage(value: com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage) extends com.eventstore.dbclient.proto.streams.AppendReq.Content {
type ValueType = com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage
override def isProposedMessage: _root_.scala.Boolean = true
override def proposedMessage: _root_.scala.Option[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage] = Some(value)
override def number: _root_.scala.Int = 2
}
}
@SerialVersionUID(0L)
final case class Options(
streamIdentifier: _root_.scala.Option[com.eventstore.dbclient.proto.shared.StreamIdentifier] = _root_.scala.None,
expectedStreamRevision: com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision = com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.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 (streamIdentifier.isDefined) {
val __value = streamIdentifier.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (expectedStreamRevision.revision.isDefined) {
val __value = expectedStreamRevision.revision.get
__size += _root_.com.google.protobuf.CodedOutputStream.computeUInt64Size(2, __value)
};
if (expectedStreamRevision.noStream.isDefined) {
val __value = expectedStreamRevision.noStream.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (expectedStreamRevision.any.isDefined) {
val __value = expectedStreamRevision.any.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
if (expectedStreamRevision.streamExists.isDefined) {
val __value = expectedStreamRevision.streamExists.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 = {
streamIdentifier.foreach { __v =>
val __m = __v
_output__.writeTag(1, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
expectedStreamRevision.revision.foreach { __v =>
val __m = __v
_output__.writeUInt64(2, __m)
};
expectedStreamRevision.noStream.foreach { __v =>
val __m = __v
_output__.writeTag(3, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
expectedStreamRevision.any.foreach { __v =>
val __m = __v
_output__.writeTag(4, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
expectedStreamRevision.streamExists.foreach { __v =>
val __m = __v
_output__.writeTag(5, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
unknownFields.writeTo(_output__)
}
def getStreamIdentifier: com.eventstore.dbclient.proto.shared.StreamIdentifier = streamIdentifier.getOrElse(com.eventstore.dbclient.proto.shared.StreamIdentifier.defaultInstance)
def clearStreamIdentifier: Options = copy(streamIdentifier = _root_.scala.None)
def withStreamIdentifier(__v: com.eventstore.dbclient.proto.shared.StreamIdentifier): Options = copy(streamIdentifier = Option(__v))
def getRevision: _root_.scala.Long = expectedStreamRevision.revision.getOrElse(0L)
def withRevision(__v: _root_.scala.Long): Options = copy(expectedStreamRevision = com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.Revision(__v))
def getNoStream: com.eventstore.dbclient.proto.shared.Empty = expectedStreamRevision.noStream.getOrElse(com.eventstore.dbclient.proto.shared.Empty.defaultInstance)
def withNoStream(__v: com.eventstore.dbclient.proto.shared.Empty): Options = copy(expectedStreamRevision = com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.NoStream(__v))
def getAny: com.eventstore.dbclient.proto.shared.Empty = expectedStreamRevision.any.getOrElse(com.eventstore.dbclient.proto.shared.Empty.defaultInstance)
def withAny(__v: com.eventstore.dbclient.proto.shared.Empty): Options = copy(expectedStreamRevision = com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.Any(__v))
def getStreamExists: com.eventstore.dbclient.proto.shared.Empty = expectedStreamRevision.streamExists.getOrElse(com.eventstore.dbclient.proto.shared.Empty.defaultInstance)
def withStreamExists(__v: com.eventstore.dbclient.proto.shared.Empty): Options = copy(expectedStreamRevision = com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.StreamExists(__v))
def clearExpectedStreamRevision: Options = copy(expectedStreamRevision = com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.Empty)
def withExpectedStreamRevision(__v: com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision): Options = copy(expectedStreamRevision = __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 => streamIdentifier.orNull
case 2 => expectedStreamRevision.revision.orNull
case 3 => expectedStreamRevision.noStream.orNull
case 4 => expectedStreamRevision.any.orNull
case 5 => expectedStreamRevision.streamExists.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 => streamIdentifier.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 2 => expectedStreamRevision.revision.map(_root_.scalapb.descriptors.PLong(_)).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 3 => expectedStreamRevision.noStream.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 4 => expectedStreamRevision.any.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 5 => expectedStreamRevision.streamExists.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: com.eventstore.dbclient.proto.streams.AppendReq.Options.type = com.eventstore.dbclient.proto.streams.AppendReq.Options
// @@protoc_insertion_point(GeneratedMessage[event_store.client.streams.AppendReq.Options])
}
object Options extends scalapb.GeneratedMessageCompanion[com.eventstore.dbclient.proto.streams.AppendReq.Options] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[com.eventstore.dbclient.proto.streams.AppendReq.Options] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): com.eventstore.dbclient.proto.streams.AppendReq.Options = {
var __streamIdentifier: _root_.scala.Option[com.eventstore.dbclient.proto.shared.StreamIdentifier] = _root_.scala.None
var __expectedStreamRevision: com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision = com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.Empty
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__streamIdentifier = _root_.scala.Option(__streamIdentifier.fold(_root_.scalapb.LiteParser.readMessage[com.eventstore.dbclient.proto.shared.StreamIdentifier](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 16 =>
__expectedStreamRevision = com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.Revision(_input__.readUInt64())
case 26 =>
__expectedStreamRevision = com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.NoStream(__expectedStreamRevision.noStream.fold(_root_.scalapb.LiteParser.readMessage[com.eventstore.dbclient.proto.shared.Empty](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 34 =>
__expectedStreamRevision = com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.Any(__expectedStreamRevision.any.fold(_root_.scalapb.LiteParser.readMessage[com.eventstore.dbclient.proto.shared.Empty](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 42 =>
__expectedStreamRevision = com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.StreamExists(__expectedStreamRevision.streamExists.fold(_root_.scalapb.LiteParser.readMessage[com.eventstore.dbclient.proto.shared.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.streams.AppendReq.Options(
streamIdentifier = __streamIdentifier,
expectedStreamRevision = __expectedStreamRevision,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[com.eventstore.dbclient.proto.streams.AppendReq.Options] = _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.streams.AppendReq.Options(
streamIdentifier = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).flatMap(_.as[_root_.scala.Option[com.eventstore.dbclient.proto.shared.StreamIdentifier]]),
expectedStreamRevision = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).flatMap(_.as[_root_.scala.Option[_root_.scala.Long]]).map(com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.Revision(_))
.orElse[com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision](__fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).flatMap(_.as[_root_.scala.Option[com.eventstore.dbclient.proto.shared.Empty]]).map(com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.NoStream(_)))
.orElse[com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision](__fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).flatMap(_.as[_root_.scala.Option[com.eventstore.dbclient.proto.shared.Empty]]).map(com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.Any(_)))
.orElse[com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision](__fieldsMap.get(scalaDescriptor.findFieldByNumber(5).get).flatMap(_.as[_root_.scala.Option[com.eventstore.dbclient.proto.shared.Empty]]).map(com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.StreamExists(_)))
.getOrElse(com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.Empty)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = com.eventstore.dbclient.proto.streams.AppendReq.javaDescriptor.getNestedTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = com.eventstore.dbclient.proto.streams.AppendReq.scalaDescriptor.nestedMessages(0)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[?] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[?] = null
(__number: @_root_.scala.unchecked) match {
case 1 => __out = com.eventstore.dbclient.proto.shared.StreamIdentifier
case 3 => __out = com.eventstore.dbclient.proto.shared.Empty
case 4 => __out = com.eventstore.dbclient.proto.shared.Empty
case 5 => __out = com.eventstore.dbclient.proto.shared.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.streams.AppendReq.Options(
streamIdentifier = _root_.scala.None,
expectedStreamRevision = com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision.Empty
)
sealed trait ExpectedStreamRevision extends _root_.scalapb.GeneratedOneof {
def isEmpty: _root_.scala.Boolean = false
def isDefined: _root_.scala.Boolean = true
def isRevision: _root_.scala.Boolean = false
def isNoStream: _root_.scala.Boolean = false
def isAny: _root_.scala.Boolean = false
def isStreamExists: _root_.scala.Boolean = false
def revision: _root_.scala.Option[_root_.scala.Long] = _root_.scala.None
def noStream: _root_.scala.Option[com.eventstore.dbclient.proto.shared.Empty] = _root_.scala.None
def any: _root_.scala.Option[com.eventstore.dbclient.proto.shared.Empty] = _root_.scala.None
def streamExists: _root_.scala.Option[com.eventstore.dbclient.proto.shared.Empty] = _root_.scala.None
}
object ExpectedStreamRevision {
@SerialVersionUID(0L)
case object Empty extends com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision {
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 Revision(value: _root_.scala.Long) extends com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision {
type ValueType = _root_.scala.Long
override def isRevision: _root_.scala.Boolean = true
override def revision: _root_.scala.Option[_root_.scala.Long] = Some(value)
override def number: _root_.scala.Int = 2
}
@SerialVersionUID(0L)
final case class NoStream(value: com.eventstore.dbclient.proto.shared.Empty) extends com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision {
type ValueType = com.eventstore.dbclient.proto.shared.Empty
override def isNoStream: _root_.scala.Boolean = true
override def noStream: _root_.scala.Option[com.eventstore.dbclient.proto.shared.Empty] = Some(value)
override def number: _root_.scala.Int = 3
}
@SerialVersionUID(0L)
final case class Any(value: com.eventstore.dbclient.proto.shared.Empty) extends com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision {
type ValueType = com.eventstore.dbclient.proto.shared.Empty
override def isAny: _root_.scala.Boolean = true
override def any: _root_.scala.Option[com.eventstore.dbclient.proto.shared.Empty] = Some(value)
override def number: _root_.scala.Int = 4
}
@SerialVersionUID(0L)
final case class StreamExists(value: com.eventstore.dbclient.proto.shared.Empty) extends com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision {
type ValueType = com.eventstore.dbclient.proto.shared.Empty
override def isStreamExists: _root_.scala.Boolean = true
override def streamExists: _root_.scala.Option[com.eventstore.dbclient.proto.shared.Empty] = Some(value)
override def number: _root_.scala.Int = 5
}
}
final val STREAM_IDENTIFIER_FIELD_NUMBER = 1
final val REVISION_FIELD_NUMBER = 2
final val NO_STREAM_FIELD_NUMBER = 3
final val ANY_FIELD_NUMBER = 4
final val STREAM_EXISTS_FIELD_NUMBER = 5
def of(
streamIdentifier: _root_.scala.Option[com.eventstore.dbclient.proto.shared.StreamIdentifier],
expectedStreamRevision: com.eventstore.dbclient.proto.streams.AppendReq.Options.ExpectedStreamRevision
): _root_.com.eventstore.dbclient.proto.streams.AppendReq.Options = _root_.com.eventstore.dbclient.proto.streams.AppendReq.Options(
streamIdentifier,
expectedStreamRevision
)
// @@protoc_insertion_point(GeneratedMessageCompanion[event_store.client.streams.AppendReq.Options])
}
@SerialVersionUID(0L)
final case class ProposedMessage(
id: _root_.scala.Option[com.eventstore.dbclient.proto.shared.UUID] = _root_.scala.None,
metadata: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String] = _root_.scala.collection.immutable.Map.empty,
customMetadata: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY,
data: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.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 (id.isDefined) {
val __value = id.get
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
};
metadata.foreach { __item =>
val __value = com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage._typemapper_metadata.toBase(__item)
__size += 1 + _root_.com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(__value.serializedSize) + __value.serializedSize
}
{
val __value = customMetadata
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(3, __value)
}
};
{
val __value = data
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeBytesSize(4, __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 = {
id.foreach { __v =>
val __m = __v
_output__.writeTag(1, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
metadata.foreach { __v =>
val __m = com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage._typemapper_metadata.toBase(__v)
_output__.writeTag(2, 2)
_output__.writeUInt32NoTag(__m.serializedSize)
__m.writeTo(_output__)
};
{
val __v = customMetadata
if (!__v.isEmpty) {
_output__.writeBytes(3, __v)
}
};
{
val __v = data
if (!__v.isEmpty) {
_output__.writeBytes(4, __v)
}
};
unknownFields.writeTo(_output__)
}
def getId: com.eventstore.dbclient.proto.shared.UUID = id.getOrElse(com.eventstore.dbclient.proto.shared.UUID.defaultInstance)
def clearId: ProposedMessage = copy(id = _root_.scala.None)
def withId(__v: com.eventstore.dbclient.proto.shared.UUID): ProposedMessage = copy(id = Option(__v))
def clearMetadata = copy(metadata = _root_.scala.collection.immutable.Map.empty)
def addMetadata(__vs: (_root_.scala.Predef.String, _root_.scala.Predef.String) *): ProposedMessage = addAllMetadata(__vs)
def addAllMetadata(__vs: Iterable[(_root_.scala.Predef.String, _root_.scala.Predef.String)]): ProposedMessage = copy(metadata = metadata ++ __vs)
def withMetadata(__v: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String]): ProposedMessage = copy(metadata = __v)
def withCustomMetadata(__v: _root_.com.google.protobuf.ByteString): ProposedMessage = copy(customMetadata = __v)
def withData(__v: _root_.com.google.protobuf.ByteString): ProposedMessage = copy(data = __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 => id.orNull
case 2 => metadata.iterator.map(com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage._typemapper_metadata.toBase(_)).toSeq
case 3 => {
val __t = customMetadata
if (__t != _root_.com.google.protobuf.ByteString.EMPTY) __t else null
}
case 4 => {
val __t = data
if (__t != _root_.com.google.protobuf.ByteString.EMPTY) __t else null
}
}
}
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 => id.map(_.toPMessage).getOrElse(_root_.scalapb.descriptors.PEmpty)
case 2 => _root_.scalapb.descriptors.PRepeated(metadata.iterator.map(com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage._typemapper_metadata.toBase(_).toPMessage).toVector)
case 3 => _root_.scalapb.descriptors.PByteString(customMetadata)
case 4 => _root_.scalapb.descriptors.PByteString(data)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.type = com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage
// @@protoc_insertion_point(GeneratedMessage[event_store.client.streams.AppendReq.ProposedMessage])
}
object ProposedMessage extends scalapb.GeneratedMessageCompanion[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage = {
var __id: _root_.scala.Option[com.eventstore.dbclient.proto.shared.UUID] = _root_.scala.None
val __metadata: _root_.scala.collection.mutable.Builder[(_root_.scala.Predef.String, _root_.scala.Predef.String), _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String]] = _root_.scala.collection.immutable.Map.newBuilder[_root_.scala.Predef.String, _root_.scala.Predef.String]
var __customMetadata: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY
var __data: _root_.com.google.protobuf.ByteString = _root_.com.google.protobuf.ByteString.EMPTY
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__id = _root_.scala.Option(__id.fold(_root_.scalapb.LiteParser.readMessage[com.eventstore.dbclient.proto.shared.UUID](_input__))(_root_.scalapb.LiteParser.readMessage(_input__, _)))
case 18 =>
__metadata += com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage._typemapper_metadata.toCustom(_root_.scalapb.LiteParser.readMessage[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry](_input__))
case 26 =>
__customMetadata = _input__.readBytes()
case 34 =>
__data = _input__.readBytes()
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage(
id = __id,
metadata = __metadata.result(),
customMetadata = __customMetadata,
data = __data,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage] = _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.streams.AppendReq.ProposedMessage(
id = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).flatMap(_.as[_root_.scala.Option[com.eventstore.dbclient.proto.shared.UUID]]),
metadata = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Seq[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry]]).getOrElse(_root_.scala.Seq.empty).iterator.map(com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage._typemapper_metadata.toCustom(_)).toMap,
customMetadata = __fieldsMap.get(scalaDescriptor.findFieldByNumber(3).get).map(_.as[_root_.com.google.protobuf.ByteString]).getOrElse(_root_.com.google.protobuf.ByteString.EMPTY),
data = __fieldsMap.get(scalaDescriptor.findFieldByNumber(4).get).map(_.as[_root_.com.google.protobuf.ByteString]).getOrElse(_root_.com.google.protobuf.ByteString.EMPTY)
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = com.eventstore.dbclient.proto.streams.AppendReq.javaDescriptor.getNestedTypes().get(1)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = com.eventstore.dbclient.proto.streams.AppendReq.scalaDescriptor.nestedMessages(1)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[?] = {
var __out: _root_.scalapb.GeneratedMessageCompanion[?] = null
(__number: @_root_.scala.unchecked) match {
case 1 => __out = com.eventstore.dbclient.proto.shared.UUID
case 2 => __out = com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry
}
__out
}
lazy val nestedMessagesCompanions: Seq[_root_.scalapb.GeneratedMessageCompanion[? <: _root_.scalapb.GeneratedMessage]] =
Seq[_root_.scalapb.GeneratedMessageCompanion[? <: _root_.scalapb.GeneratedMessage]](
_root_.com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry
)
def enumCompanionForFieldNumber(__fieldNumber: _root_.scala.Int): _root_.scalapb.GeneratedEnumCompanion[?] = throw new MatchError(__fieldNumber)
lazy val defaultInstance = com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage(
id = _root_.scala.None,
metadata = _root_.scala.collection.immutable.Map.empty,
customMetadata = _root_.com.google.protobuf.ByteString.EMPTY,
data = _root_.com.google.protobuf.ByteString.EMPTY
)
@SerialVersionUID(0L)
final case class MetadataEntry(
key: _root_.scala.Predef.String = "",
value: _root_.scala.Predef.String = "",
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
{
val __value = key
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(1, __value)
}
};
{
val __value = value
if (!__value.isEmpty) {
__size += _root_.com.google.protobuf.CodedOutputStream.computeStringSize(2, __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 = {
{
val __v = key
if (!__v.isEmpty) {
_output__.writeString(1, __v)
}
};
{
val __v = value
if (!__v.isEmpty) {
_output__.writeString(2, __v)
}
};
unknownFields.writeTo(_output__)
}
def withKey(__v: _root_.scala.Predef.String): MetadataEntry = copy(key = __v)
def withValue(__v: _root_.scala.Predef.String): MetadataEntry = copy(value = __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 => {
val __t = key
if (__t != "") __t else null
}
case 2 => {
val __t = value
if (__t != "") __t else null
}
}
}
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.PString(key)
case 2 => _root_.scalapb.descriptors.PString(value)
}
}
def toProtoString: _root_.scala.Predef.String = _root_.scalapb.TextFormat.printToUnicodeString(this)
def companion: com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry.type = com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry
// @@protoc_insertion_point(GeneratedMessage[event_store.client.streams.AppendReq.ProposedMessage.MetadataEntry])
}
object MetadataEntry extends scalapb.GeneratedMessageCompanion[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry] {
implicit def messageCompanion: scalapb.GeneratedMessageCompanion[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry] = this
def parseFrom(`_input__`: _root_.com.google.protobuf.CodedInputStream): com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry = {
var __key: _root_.scala.Predef.String = ""
var __value: _root_.scala.Predef.String = ""
var `_unknownFields__`: _root_.scalapb.UnknownFieldSet.Builder = null
var _done__ = false
while (!_done__) {
val _tag__ = _input__.readTag()
_tag__ match {
case 0 => _done__ = true
case 10 =>
__key = _input__.readStringRequireUtf8()
case 18 =>
__value = _input__.readStringRequireUtf8()
case tag =>
if (_unknownFields__ == null) {
_unknownFields__ = new _root_.scalapb.UnknownFieldSet.Builder()
}
_unknownFields__.parseField(tag, _input__)
}
}
com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry(
key = __key,
value = __value,
unknownFields = if (_unknownFields__ == null) _root_.scalapb.UnknownFieldSet.empty else _unknownFields__.result()
)
}
implicit def messageReads: _root_.scalapb.descriptors.Reads[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry] = _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.streams.AppendReq.ProposedMessage.MetadataEntry(
key = __fieldsMap.get(scalaDescriptor.findFieldByNumber(1).get).map(_.as[_root_.scala.Predef.String]).getOrElse(""),
value = __fieldsMap.get(scalaDescriptor.findFieldByNumber(2).get).map(_.as[_root_.scala.Predef.String]).getOrElse("")
)
case _ => throw new RuntimeException("Expected PMessage")
}
def javaDescriptor: _root_.com.google.protobuf.Descriptors.Descriptor = com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.javaDescriptor.getNestedTypes().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.Descriptor = com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.scalaDescriptor.nestedMessages(0)
def messageCompanionForFieldNumber(__number: _root_.scala.Int): _root_.scalapb.GeneratedMessageCompanion[?] = throw new MatchError(__number)
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.streams.AppendReq.ProposedMessage.MetadataEntry(
key = "",
value = ""
)
final val KEY_FIELD_NUMBER = 1
final val VALUE_FIELD_NUMBER = 2
@transient
implicit val keyValueMapper: _root_.scalapb.TypeMapper[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry, (_root_.scala.Predef.String, _root_.scala.Predef.String)] =
_root_.scalapb.TypeMapper[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry, (_root_.scala.Predef.String, _root_.scala.Predef.String)](__m => (__m.key, __m.value))(__p => com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry(__p._1, __p._2))
def of(
key: _root_.scala.Predef.String,
value: _root_.scala.Predef.String
): _root_.com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry = _root_.com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry(
key,
value
)
// @@protoc_insertion_point(GeneratedMessageCompanion[event_store.client.streams.AppendReq.ProposedMessage.MetadataEntry])
}
final val ID_FIELD_NUMBER = 1
final val METADATA_FIELD_NUMBER = 2
final val CUSTOM_METADATA_FIELD_NUMBER = 3
final val DATA_FIELD_NUMBER = 4
@transient
private[streams] val _typemapper_metadata: _root_.scalapb.TypeMapper[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry, (_root_.scala.Predef.String, _root_.scala.Predef.String)] = implicitly[_root_.scalapb.TypeMapper[com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage.MetadataEntry, (_root_.scala.Predef.String, _root_.scala.Predef.String)]]
def of(
id: _root_.scala.Option[com.eventstore.dbclient.proto.shared.UUID],
metadata: _root_.scala.collection.immutable.Map[_root_.scala.Predef.String, _root_.scala.Predef.String],
customMetadata: _root_.com.google.protobuf.ByteString,
data: _root_.com.google.protobuf.ByteString
): _root_.com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage = _root_.com.eventstore.dbclient.proto.streams.AppendReq.ProposedMessage(
id,
metadata,
customMetadata,
data
)
// @@protoc_insertion_point(GeneratedMessageCompanion[event_store.client.streams.AppendReq.ProposedMessage])
}
final val OPTIONS_FIELD_NUMBER = 1
final val PROPOSED_MESSAGE_FIELD_NUMBER = 2
def of(
content: com.eventstore.dbclient.proto.streams.AppendReq.Content
): _root_.com.eventstore.dbclient.proto.streams.AppendReq = _root_.com.eventstore.dbclient.proto.streams.AppendReq(
content
)
// @@protoc_insertion_point(GeneratedMessageCompanion[event_store.client.streams.AppendReq])
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy