org.infinispan.commons.util.KeyValueWithPrevious$___Marshaller_9145896a24b67e12a03ab245b027743214e8f0a00cff4e94594e6701c8f07ff1 Maven / Gradle / Ivy
/*
Generated by org.infinispan.protostream.annotations.impl.processor.MarshallerSourceCodeGenerator
for class org.infinispan.commons.util.KeyValueWithPrevious
*/
package org.infinispan.commons.util;
import org.infinispan.commons.util.KeyValueWithPrevious;
/**
* WARNING: Generated code! Do not edit!
*
* @private
*/
@javax.annotation.processing.Generated(
value = "org.infinispan.protostream.annotations.impl.processor.AutoProtoSchemaBuilderAnnotationProcessor",
comments = "Please do not edit this file!"
)
@SuppressWarnings("all")
public final class KeyValueWithPrevious$___Marshaller_9145896a24b67e12a03ab245b027743214e8f0a00cff4e94594e6701c8f07ff1 extends org.infinispan.protostream.annotations.impl.GeneratedMarshallerBase implements org.infinispan.protostream.ProtobufTagMarshaller {
private org.infinispan.protostream.impl.BaseMarshallerDelegate __md$1;
private org.infinispan.protostream.impl.BaseMarshallerDelegate __md$2;
private org.infinispan.protostream.impl.BaseMarshallerDelegate __md$3;
@Override
public Class getJavaClass() { return org.infinispan.commons.util.KeyValueWithPrevious.class; }
@Override
public String getTypeName() { return "org.infinispan.global.commons.KeyValueWithPrevious"; }
@Override
public org.infinispan.commons.util.KeyValueWithPrevious read(org.infinispan.protostream.ProtobufTagMarshaller.ReadContext $1) throws java.io.IOException {
final org.infinispan.protostream.TagReader $in = $1.getReader();
org.infinispan.protostream.WrappedMessage __v$1 = null;
org.infinispan.protostream.WrappedMessage __v$2 = null;
org.infinispan.protostream.WrappedMessage __v$3 = null;
boolean done = false;
while (!done) {
final int tag = $in.readTag();
switch (tag) {
case 0: {
done = true;
break;
}
case (1 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_LENGTH_DELIMITED): {
if (__md$1 == null) __md$1 = ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(org.infinispan.protostream.WrappedMessage.class);
int length = $in.readUInt32();
int oldLimit = $in.pushLimit(length);
__v$1 = (org.infinispan.protostream.WrappedMessage) readMessage(__md$1, $1);
$in.checkLastTagWas(0);
$in.popLimit(oldLimit);
break;
}
case (2 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_LENGTH_DELIMITED): {
if (__md$2 == null) __md$2 = ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(org.infinispan.protostream.WrappedMessage.class);
int length = $in.readUInt32();
int oldLimit = $in.pushLimit(length);
__v$2 = (org.infinispan.protostream.WrappedMessage) readMessage(__md$2, $1);
$in.checkLastTagWas(0);
$in.popLimit(oldLimit);
break;
}
case (3 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_LENGTH_DELIMITED): {
if (__md$3 == null) __md$3 = ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(org.infinispan.protostream.WrappedMessage.class);
int length = $in.readUInt32();
int oldLimit = $in.pushLimit(length);
__v$3 = (org.infinispan.protostream.WrappedMessage) readMessage(__md$3, $1);
$in.checkLastTagWas(0);
$in.popLimit(oldLimit);
break;
}
default: {
if (!$in.skipField(tag)) done = true;
}
}
}
return new org.infinispan.commons.util.KeyValueWithPrevious(__v$1, __v$2, __v$3);
}
@Override
public void write(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext $1, org.infinispan.commons.util.KeyValueWithPrevious $2) throws java.io.IOException {
final org.infinispan.protostream.TagWriter $out = $1.getWriter();
final org.infinispan.commons.util.KeyValueWithPrevious o = (org.infinispan.commons.util.KeyValueWithPrevious) $2;
{
final org.infinispan.protostream.WrappedMessage __v$1 = (org.infinispan.protostream.WrappedMessage) o.getWrappedKey();
if (__v$1 != null) {
if (__md$1 == null) __md$1 = ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(org.infinispan.protostream.WrappedMessage.class);
writeNestedMessage(__md$1, $1, 1, __v$1);
}
}
{
final org.infinispan.protostream.WrappedMessage __v$2 = (org.infinispan.protostream.WrappedMessage) o.getWrappedValue();
if (__v$2 != null) {
if (__md$2 == null) __md$2 = ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(org.infinispan.protostream.WrappedMessage.class);
writeNestedMessage(__md$2, $1, 2, __v$2);
}
}
{
final org.infinispan.protostream.WrappedMessage __v$3 = (org.infinispan.protostream.WrappedMessage) o.getWrappedPrev();
if (__v$3 != null) {
if (__md$3 == null) __md$3 = ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(org.infinispan.protostream.WrappedMessage.class);
writeNestedMessage(__md$3, $1, 3, __v$3);
}
}
}
}