Top Inners Constructors Methods
com.squareup.protoparser

public abstract Class FieldElement

extends Object
Class Inheritance
Annotations
@AutoValue
Imports
com.google.auto.value.AutoValue, java.util.ArrayList, .Collection, .List, .Locale

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static enum

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static FieldElement.Builder
public abstract String
public final OptionElement
getDefault()

Returns the default option value or null.

public final boolean
isDeprecated()

Returns true when the deprecated option is present and set to true.

public final boolean
isPacked()

Returns true when the packed option is present and set to true.

public abstract FieldElement.Label
public abstract String
name()

public abstract List<OptionElement>
public abstract int
tag()

public final String
public abstract DataType
type()

Returns the type of this field.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FieldElementback to summary
pack-priv FieldElement()

Method Detail

builderback to summary
public static FieldElement.Builder builder()
documentationback to summary
public abstract String documentation()
getDefaultback to summary
public final OptionElement getDefault()

Returns the default option value or null.

isDeprecatedback to summary
public final boolean isDeprecated()

Returns true when the deprecated option is present and set to true.

isPackedback to summary
public final boolean isPacked()

Returns true when the packed option is present and set to true.

labelback to summary
public abstract FieldElement.Label label()
nameback to summary
public abstract String name()
optionsback to summary
public abstract List<OptionElement> options()
tagback to summary
public abstract int tag()
toSchemaback to summary
public final String toSchema()
typeback to summary
public abstract DataType type()

Returns the type of this field. May be a message type name, an enum type name, or a scalar value type like int64 or bytes.

com.squareup.protoparser back to summary

public final Class FieldElement.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private String
private FieldElement.Label
private String
private final List<OptionElement>
private Integer
private DataType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public FieldElement.Builder
public FieldElement.Builder
public FieldElement
public FieldElement.Builder
documentation(String documentation)

public FieldElement.Builder
public FieldElement.Builder
name(String name)

public FieldElement.Builder
tag(int tag)

public FieldElement.Builder
type(DataType type)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

documentationback to summary
private String documentation
labelback to summary
private FieldElement.Label label
nameback to summary
private String name
optionsback to summary
private final List<OptionElement> options
tagback to summary
private Integer tag
typeback to summary
private DataType type

Constructor Detail

Builderback to summary
private Builder()

Method Detail

addOptionback to summary
public FieldElement.Builder addOption(OptionElement option)
addOptionsback to summary
public FieldElement.Builder addOptions(Collection<OptionElement> options)
buildback to summary
public FieldElement build()
documentationback to summary
public FieldElement.Builder documentation(String documentation)
labelback to summary
public FieldElement.Builder label(FieldElement.Label label)
nameback to summary
public FieldElement.Builder name(String name)
tagback to summary
public FieldElement.Builder tag(int tag)
typeback to summary
public FieldElement.Builder type(DataType type)
com.squareup.protoparser back to summary

public final Enum FieldElement.Label

extends Enum<FieldElement.Label>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final FieldElement.Label
ONE_OF

Indicates the field is a member of a oneof block.

public static final FieldElement.Label
public static final FieldElement.Label
public static final FieldElement.Label

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FieldElement.Label
public static FieldElement.Label[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ONE_OFback to summary
public static final FieldElement.Label ONE_OF

Indicates the field is a member of a oneof block.

OPTIONALback to summary
public static final FieldElement.Label OPTIONAL
REPEATEDback to summary
public static final FieldElement.Label REPEATED
REQUIREDback to summary
public static final FieldElement.Label REQUIRED

Constructor Detail

Labelback to summary
private Label()

Method Detail

valueOfback to summary
public static FieldElement.Label valueOf(String name)
valuesback to summary
public static FieldElement.Label[] values()