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

org.infinispan.protostream.annotations.ProtoEnumValue Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.protostream.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Defines a Protobuf enum value. This annotation can only be applied to members of an enum.
 *
 * @author [email protected]
 * @since 3.0
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ProtoEnumValue {

   /**
    * The Protocol Buffers tag number.
    */
   int number();

   /**
    * The name of the Protobuf enum value. If missing, the Java name will be used for Protobuf too.
    */
   String name() default "";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy