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

org.infinispan.protostream.sampledomain.Address$___Marshaller_d43a123c316c8c365f2c639e67653f0a824775e79bda4740bddcb3c405dc8c28 Maven / Gradle / Ivy

/*
 Generated by org.infinispan.protostream.annotations.impl.processor.MarshallerSourceCodeGenerator
 for class org.infinispan.protostream.sampledomain.Address
*/

package org.infinispan.protostream.sampledomain;

import org.infinispan.protostream.sampledomain.Address;

/**
 * WARNING: Generated code! Do not edit!
 */
@javax.annotation.processing.Generated(
   value = "org.infinispan.protostream.annotations.impl.processor.AutoProtoSchemaBuilderAnnotationProcessor",
   comments = "Please do not edit this file!"
)
@SuppressWarnings("all")
public final class Address$___Marshaller_d43a123c316c8c365f2c639e67653f0a824775e79bda4740bddcb3c405dc8c28 extends org.infinispan.protostream.annotations.impl.GeneratedMarshallerBase implements org.infinispan.protostream.ProtobufTagMarshaller {

   @Override
   public Class getJavaClass() { return org.infinispan.protostream.sampledomain.Address.class; }

   @Override
   public String getTypeName() { return "sample_bank_account.Address"; }

   @Override
   public org.infinispan.protostream.sampledomain.Address read(org.infinispan.protostream.ProtobufTagMarshaller.ReadContext $1) throws java.io.IOException {
      final org.infinispan.protostream.TagReader $in = $1.getReader();
      final org.infinispan.protostream.sampledomain.Address o = new org.infinispan.protostream.sampledomain.Address();
      long __bits$0 = 0;
      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): {
               java.lang.String __v$1 = $in.readString();
               o.setStreet(__v$1);
               break;
            }
            case (2 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_LENGTH_DELIMITED): {
               java.lang.String __v$2 = $in.readString();
               o.setPostCode(__v$2);
               break;
            }
            case (3 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_VARINT): {
               int __v$3 = $in.readInt32();
               o.setNumber(__v$3);
               __bits$0 |= 1L;
               break;
            }
            case (4 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_VARINT): {
               boolean __v$4 = $in.readBool();
               o.setCommercial(__v$4);
               __bits$0 |= 2L;
               break;
            }
            default: {
               if (!$in.skipField(tag)) done = true;
            }
         }
      }
      if ((__bits$0 & 1L) == 0) {
         o.setNumber(0);
      }
      if ((__bits$0 & 2L) == 0) {
         o.setCommercial(false);
      }
      return o;
   }

   @Override
   public void write(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext $1, org.infinispan.protostream.sampledomain.Address $2) throws java.io.IOException {
      org.infinispan.protostream.impl.TagWriterImpl $out = (org.infinispan.protostream.impl.TagWriterImpl) $1.getWriter();
      final org.infinispan.protostream.sampledomain.Address o = (org.infinispan.protostream.sampledomain.Address) $2;
      {
         final java.lang.String __v$1 = o.getStreet();
         if (__v$1 != null) $out.writeString(1, __v$1);
      }
      {
         final java.lang.String __v$2 = o.getPostCode();
         if (__v$2 != null) $out.writeString(2, __v$2);
      }
      {
         final int __v$3 = o.getNumber();
         $out.writeInt32(3, __v$3);
      }
      {
         final boolean __v$4 = o.isCommercial();
         $out.writeBool(4, __v$4);
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy