org.infinispan.protostream.descriptors.FieldDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protostream Show documentation
Show all versions of protostream Show documentation
ProtoStream is a serialization library based on Protocol buffers format for serializing structured data.
package org.infinispan.protostream.descriptors;
import static java.util.Collections.unmodifiableList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.infinispan.protostream.DescriptorParserException;
import org.infinispan.protostream.config.AnnotationConfiguration;
import org.infinispan.protostream.impl.AnnotatedDescriptorImpl;
/**
* Represents a field in a proto file.
*
* @author gustavonalle
* @author [email protected]
* @since 2.0
*/
public final class FieldDescriptor extends AnnotatedDescriptorImpl implements AnnotatedDescriptor {
private static final String PACKED = "packed";
private final int number;
private final Label label;
private final String typeName;
private final String defaultValue;
private final List