org.infinispan.protostream.sampledomain.Limits$___Marshaller_c296569c09fe4b75aa85fc0f32f8a32f4ec4c899316627bd3c43bac77f643583 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-sample-domain-implementation Show documentation
Show all versions of proto-sample-domain-implementation Show documentation
A ProtoStream sample domain implementation can be used for tests among different Infinispan module
The newest version!
/*
Generated by org.infinispan.protostream.annotations.impl.processor.MarshallerSourceCodeGenerator
for class org.infinispan.protostream.sampledomain.Account.Limits
*/
package org.infinispan.protostream.sampledomain;
import org.infinispan.protostream.sampledomain.Account.Limits;
/**
* 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 Limits$___Marshaller_c296569c09fe4b75aa85fc0f32f8a32f4ec4c899316627bd3c43bac77f643583 extends org.infinispan.protostream.annotations.impl.GeneratedMarshallerBase implements org.infinispan.protostream.ProtobufTagMarshaller {
@Override
public Class getJavaClass() { return org.infinispan.protostream.sampledomain.Account.Limits.class; }
@Override
public String getTypeName() { return "sample_bank_account.Account.Limits"; }
@Override
public org.infinispan.protostream.sampledomain.Account.Limits read(org.infinispan.protostream.ProtobufTagMarshaller.ReadContext $1) throws java.io.IOException {
final org.infinispan.protostream.TagReader $in = $1.getReader();
final org.infinispan.protostream.sampledomain.Account.Limits o = new org.infinispan.protostream.sampledomain.Account.Limits();
java.util.ArrayList __c$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_FIXED64): {
java.lang.Double __v$1 = java.lang.Double.valueOf($in.readDouble());
o.setMaxDailyLimit(__v$1);
break;
}
case (2 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_FIXED64): {
java.lang.Double __v$2 = java.lang.Double.valueOf($in.readDouble());
o.setMaxTransactionLimit(__v$2);
break;
}
case (3 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_LENGTH_DELIMITED): {
java.lang.String __v$3 = $in.readString();
if (__c$3 == null) __c$3 = new java.util.ArrayList();
__c$3.add(__v$3);
break;
}
default: {
if (!$in.skipField(tag)) done = true;
}
}
}
if (__c$3 != null){
o.setPayees((java.lang.String[])__c$3.toArray(new java.lang.String[0]));
} else {
o.setPayees(new java.lang.String[0]);
}
return o;
}
@Override
public void write(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext $1, org.infinispan.protostream.sampledomain.Account.Limits $2) throws java.io.IOException {
org.infinispan.protostream.impl.TagWriterImpl $out = (org.infinispan.protostream.impl.TagWriterImpl) $1.getWriter();
final org.infinispan.protostream.sampledomain.Account.Limits o = (org.infinispan.protostream.sampledomain.Account.Limits) $2;
{
final java.lang.Double __v$1 = o.getMaxDailyLimit();
if (__v$1 != null) $out.writeDouble(1, __v$1.doubleValue());
}
{
final java.lang.Double __v$2 = o.getMaxTransactionLimit();
if (__v$2 != null) $out.writeDouble(2, __v$2.doubleValue());
}
{
final java.lang.String[] __a$3 = o.getPayees();
if (__a$3 != null)
for (int i = 0; i < __a$3.length; i++) {
final java.lang.String __v$3 = __a$3[i];
$out.writeString(3, __v$3);
}
}
}
}