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

org.infinispan.tasks.TaskContext$___Marshaller_351d4bb271bec89e30155614d4e39651f0921b93ff565610dc5ab0af4070df01 Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev05
Show newest version
/*
 Generated by org.infinispan.protostream.annotations.impl.processor.MarshallerSourceCodeGenerator
 for class org.infinispan.tasks.TaskContext
*/

package org.infinispan.tasks;

import org.infinispan.tasks.TaskContext;

/**
 * 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 TaskContext$___Marshaller_351d4bb271bec89e30155614d4e39651f0921b93ff565610dc5ab0af4070df01 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;

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

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

   @Override
   public org.infinispan.tasks.TaskContext read(org.infinispan.protostream.ProtobufTagMarshaller.ReadContext $1) throws java.io.IOException {
      final org.infinispan.protostream.TagReader $in = $1.getReader();
      java.util.ArrayList __c$1 = new java.util.ArrayList();
      javax.security.auth.Subject __v$2 = 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.tasks.TaskContext.TaskParameter.class);
               int length = $in.readUInt32();
               int oldLimit = $in.pushLimit(length);
               org.infinispan.tasks.TaskContext.TaskParameter __v$1 = (org.infinispan.tasks.TaskContext.TaskParameter) readMessage(__md$1, $1);
               $in.checkLastTagWas(0);
               $in.popLimit(oldLimit);
               __c$1.add(__v$1);
               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(javax.security.auth.Subject.class);
               int length = $in.readUInt32();
               int oldLimit = $in.pushLimit(length);
               __v$2 = (javax.security.auth.Subject) readMessage(__md$2, $1);
               $in.checkLastTagWas(0);
               $in.popLimit(oldLimit);
               break;
            }
            default: {
               if (!$in.skipField(tag)) done = true;
            }
         }
      }

      return new org.infinispan.tasks.TaskContext(__c$1, __v$2);
   }

   @Override
   public void write(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext $1, org.infinispan.tasks.TaskContext $2) throws java.io.IOException {
      org.infinispan.protostream.impl.TagWriterImpl $out = (org.infinispan.protostream.impl.TagWriterImpl) $1.getWriter();
      final org.infinispan.tasks.TaskContext o = (org.infinispan.tasks.TaskContext) $2;
      {
         final java.util.Collection __c$1 = o.parameters();
         if (__c$1 != null) 
            for (java.util.Iterator it = __c$1.iterator(); it.hasNext(); ) {
               final org.infinispan.tasks.TaskContext.TaskParameter __v$1 = it.next();
               {
                  if (__md$1 == null) __md$1 = ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(org.infinispan.tasks.TaskContext.TaskParameter.class);
                  writeNestedMessage(__md$1, $out, 1, __v$1);
               }
            }
      }
      {
         final javax.security.auth.Subject __v$2 = (javax.security.auth.Subject) o.subject();
         if (__v$2 != null) {
            if (__md$2 == null) __md$2 = ((org.infinispan.protostream.impl.SerializationContextImpl) $1.getSerializationContext()).getMarshallerDelegate(javax.security.auth.Subject.class);
            writeNestedMessage(__md$2, $out, 2, __v$2);
         }
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy