org.infinispan.counter.api.CounterConfiguration$___Marshaller_200ccbe7f9bd55cd3d0f90bae5ea29adc0a29590c936038020329c50ede7e29f Maven / Gradle / Ivy
/*
Generated by org.infinispan.protostream.annotations.impl.processor.MarshallerSourceCodeGenerator
for class org.infinispan.counter.api.CounterConfiguration
*/
package org.infinispan.counter.api;
import org.infinispan.counter.api.CounterConfiguration;
/**
* 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 CounterConfiguration$___Marshaller_200ccbe7f9bd55cd3d0f90bae5ea29adc0a29590c936038020329c50ede7e29f extends org.infinispan.protostream.annotations.impl.GeneratedMarshallerBase implements org.infinispan.protostream.ProtobufTagMarshaller {
private org.infinispan.protostream.impl.EnumMarshallerDelegate __md$5;
private org.infinispan.protostream.impl.EnumMarshallerDelegate __md$6;
@Override
public Class getJavaClass() { return org.infinispan.counter.api.CounterConfiguration.class; }
@Override
public String getTypeName() { return "org.infinispan.persistence.commons.CounterConfiguration"; }
@Override
public org.infinispan.counter.api.CounterConfiguration read(org.infinispan.protostream.ProtobufTagMarshaller.ReadContext $1) throws java.io.IOException {
final org.infinispan.protostream.TagReader $in = $1.getReader();
long __v$1 = 0L;
long __v$2 = 0L;
long __v$3 = 0L;
int __v$4 = 0;
org.infinispan.counter.api.CounterType __v$5 = null;
org.infinispan.counter.api.Storage __v$6 = null;
long __v$7 = 0L;
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_VARINT): {
__v$1 = $in.readInt64();
break;
}
case (2 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_VARINT): {
__v$2 = $in.readInt64();
break;
}
case (3 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_VARINT): {
__v$3 = $in.readInt64();
break;
}
case (4 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_VARINT): {
__v$4 = $in.readInt32();
break;
}
case (5 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_VARINT): {
if (__md$5 == null) __md$5 = (org.infinispan.protostream.impl.EnumMarshallerDelegate) ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(org.infinispan.counter.api.CounterType.class);
int enumVal = $in.readEnum();
__v$5 = (org.infinispan.counter.api.CounterType) __md$5.getMarshaller().decode(enumVal);
if (__v$5 == null) {
} else {
}
break;
}
case (6 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_VARINT): {
if (__md$6 == null) __md$6 = (org.infinispan.protostream.impl.EnumMarshallerDelegate) ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(org.infinispan.counter.api.Storage.class);
int enumVal = $in.readEnum();
__v$6 = (org.infinispan.counter.api.Storage) __md$6.getMarshaller().decode(enumVal);
if (__v$6 == null) {
} else {
}
break;
}
case (7 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_VARINT): {
__v$7 = $in.readInt64();
break;
}
default: {
if (!$in.skipField(tag)) done = true;
}
}
}
return new org.infinispan.counter.api.CounterConfiguration(__v$1, __v$2, __v$3, __v$4, __v$5, __v$6, __v$7);
}
@Override
public void write(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext $1, org.infinispan.counter.api.CounterConfiguration $2) throws java.io.IOException {
final org.infinispan.protostream.TagWriter $out = $1.getWriter();
final org.infinispan.counter.api.CounterConfiguration o = (org.infinispan.counter.api.CounterConfiguration) $2;
{
final long __v$1 = o.initialValue();
$out.writeInt64(1, __v$1);
}
{
final long __v$2 = o.lowerBound();
$out.writeInt64(2, __v$2);
}
{
final long __v$3 = o.upperBound();
$out.writeInt64(3, __v$3);
}
{
final int __v$4 = o.concurrencyLevel();
$out.writeInt32(4, __v$4);
}
{
final org.infinispan.counter.api.CounterType __v$5 = (org.infinispan.counter.api.CounterType) o.type();
if (__v$5 != null) {
if (__md$5 == null) __md$5 = (org.infinispan.protostream.impl.EnumMarshallerDelegate) ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(org.infinispan.counter.api.CounterType.class);
$out.writeEnum(5, __md$5.getMarshaller().encode(__v$5));
}
}
{
final org.infinispan.counter.api.Storage __v$6 = (org.infinispan.counter.api.Storage) o.storage();
if (__v$6 != null) {
if (__md$6 == null) __md$6 = (org.infinispan.protostream.impl.EnumMarshallerDelegate) ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(org.infinispan.counter.api.Storage.class);
$out.writeEnum(6, __md$6.getMarshaller().encode(__v$6));
}
}
{
final long __v$7 = o.lifespan();
$out.writeInt64(7, __v$7);
}
}
}