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

io.protostuff.generator.html.json.message.MessageField Maven / Gradle / Ivy

There is a newer version: 3.1.40
Show newest version
package io.protostuff.generator.html.json.message;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Map;
import javax.annotation.Nullable;
import org.immutables.value.Value;

/**
 * JSON node representing field.
 *
 * @author Kostiantyn Shchepanovskyi
 */
@Value.Immutable
@JsonSerialize(as = ImmutableMessageField.class)
@JsonDeserialize(as = ImmutableMessageField.class)
public interface MessageField {
    String name();

    String typeId();

    MessageFieldModifier modifier();

    int tag();

    @Nullable
    String description();

    @Value.Default
    default boolean map() {
        return false;
    }

    @Nullable
    String mapKeyTypeId();

    @Nullable
    String mapValueTypeId();

    @Nullable
    String oneof();

    Map options();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy