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

com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat Maven / Gradle / Ivy

Go to download

A high performance and easy to use library for Code Mobility and RPC on the Java platform.

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: component_serialization_format.proto

package com.googlecode.mobilityrpc.protocol.protobuf;

public final class ComponentSerializationFormat {
  private ComponentSerializationFormat() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  /**
   * Protobuf enum {@code com.googlecode.mobilityrpc.protocol.protobuf.SerializationFormat}
   */
  public enum SerializationFormat
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * JAVA = 0;
     */
    JAVA(0, 0),
    /**
     * KRYO = 1;
     */
    KRYO(1, 1),
    /**
     * JBOSS_MARSHALLING = 2;
     */
    JBOSS_MARSHALLING(2, 2),
    ;

    /**
     * JAVA = 0;
     */
    public static final int JAVA_VALUE = 0;
    /**
     * KRYO = 1;
     */
    public static final int KRYO_VALUE = 1;
    /**
     * JBOSS_MARSHALLING = 2;
     */
    public static final int JBOSS_MARSHALLING_VALUE = 2;


    public final int getNumber() {
      return value;
    }

    public static SerializationFormat valueOf(int value) {
      switch (value) {
        case 0: return JAVA;
        case 1: return KRYO;
        case 2: return JBOSS_MARSHALLING;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        SerializationFormat> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public SerializationFormat findValueByNumber(int number) {
              return SerializationFormat.valueOf(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(index);
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.googlecode.mobilityrpc.protocol.protobuf.ComponentSerializationFormat.getDescriptor().getEnumTypes().get(0);
    }

    private static final SerializationFormat[] VALUES = values();

    public static SerializationFormat valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int index;
    private final int value;

    private SerializationFormat(int index, int value) {
      this.index = index;
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:com.googlecode.mobilityrpc.protocol.protobuf.SerializationFormat)
  }


  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n$component_serialization_format.proto\022," +
      "com.googlecode.mobilityrpc.protocol.prot" +
      "obuf*@\n\023SerializationFormat\022\010\n\004JAVA\020\000\022\010\n" +
      "\004KRYO\020\001\022\025\n\021JBOSS_MARSHALLING\020\002"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy