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

org.infinispan.server.tasks.DistributedServerTask$___Marshaller_4e1448e876d8e1dc3a156192037f1f08063ca7d1bf1a97a266386f6ab0e7f82e Maven / Gradle / Ivy

The newest version!
/*
 Generated by org.infinispan.protostream.annotations.impl.processor.MarshallerSourceCodeGenerator
 for class org.infinispan.server.tasks.DistributedServerTask
*/

package org.infinispan.server.tasks;

import org.infinispan.server.tasks.DistributedServerTask;

/**
 * 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 DistributedServerTask$___Marshaller_4e1448e876d8e1dc3a156192037f1f08063ca7d1bf1a97a266386f6ab0e7f82e extends org.infinispan.protostream.annotations.impl.GeneratedMarshallerBase implements org.infinispan.protostream.ProtobufTagMarshaller {

   private org.infinispan.protostream.impl.BaseMarshallerDelegate __md$3;

   @Override
   public Class getJavaClass() { return org.infinispan.server.tasks.DistributedServerTask.class; }

   @Override
   public String getTypeName() { return "org.infinispan.persistence.servertasks.DistributedServerTask"; }

   @Override
   public org.infinispan.server.tasks.DistributedServerTask read(org.infinispan.protostream.ProtobufTagMarshaller.ReadContext $1) throws java.io.IOException {
      final org.infinispan.protostream.TagReader $in = $1.getReader();
      java.lang.String __v$1 = null;
      java.lang.String __v$2 = null;
      org.infinispan.tasks.TaskContext __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): {
               __v$1 = $in.readString();
               break;
            }
            case (2 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_LENGTH_DELIMITED): {
               __v$2 = $in.readString();
               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.tasks.TaskContext.class);
               int length = $in.readUInt32();
               int oldLimit = $in.pushLimit(length);
               __v$3 = (org.infinispan.tasks.TaskContext) readMessage(__md$3, $1);
               $in.checkLastTagWas(0);
               $in.popLimit(oldLimit);
               break;
            }
            default: {
               if (!$in.skipField(tag)) done = true;
            }
         }
      }
      return new org.infinispan.server.tasks.DistributedServerTask(__v$1, __v$2, __v$3);
   }

   @Override
   public void write(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext $1, org.infinispan.server.tasks.DistributedServerTask $2) throws java.io.IOException {
      org.infinispan.protostream.impl.TagWriterImpl $out = (org.infinispan.protostream.impl.TagWriterImpl) $1.getWriter();
      final org.infinispan.server.tasks.DistributedServerTask o = (org.infinispan.server.tasks.DistributedServerTask) $2;
      {
         final java.lang.String __v$1 = o.taskName;
         if (__v$1 != null) $out.writeString(1, __v$1);
      }
      {
         final java.lang.String __v$2 = o.cacheName;
         if (__v$2 != null) $out.writeString(2, __v$2);
      }
      {
         final org.infinispan.tasks.TaskContext __v$3 = (org.infinispan.tasks.TaskContext) o.context;
         if (__v$3 != null) {
            if (__md$3 == null) __md$3 = ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(org.infinispan.tasks.TaskContext.class);
            writeNestedMessage(__md$3, $out, 3, __v$3);
         }
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy