org.infinispan.protostream.annotations.ProtoEnum Maven / Gradle / Ivy
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 type. This annotation is optional and can only be applied to Enums.
*
* @author [email protected]
* @since 3.0
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ProtoEnum {
/**
* Defines the name of the Protobuf enum type. If missing, the Java name will be used for Protobuf too.
*/
String name() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy