Package hydra.ext.protobuf.proto3
Class Field
- java.lang.Object
-
- hydra.ext.protobuf.proto3.Field
-
- All Implemented Interfaces:
java.io.Serializable
public class Field extends java.lang.Object implements java.io.SerializableA single field of a message type- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameFIELD_NAME_JSON_NAMEstatic NameFIELD_NAME_NAMEstatic NameFIELD_NAME_NUMBERstatic NameFIELD_NAME_OPTIONSstatic NameFIELD_NAME_TYPEOpt<java.lang.String>jsonNameThe field JSON nameFieldNamenameThe field namejava.lang.IntegernumberThe field numberjava.util.List<Option>optionsThe protocol buffer optionsFieldTypetypeThe datatype of the fieldstatic NameTYPE_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()FieldwithJsonName(Opt<java.lang.String> jsonName)FieldwithName(FieldName name)FieldwithNumber(java.lang.Integer number)FieldwithOptions(java.util.List<Option> options)FieldwithType(FieldType type)
-
-
-
Field Detail
-
TYPE_NAME
public static final Name TYPE_NAME
-
FIELD_NAME_NAME
public static final Name FIELD_NAME_NAME
-
FIELD_NAME_JSON_NAME
public static final Name FIELD_NAME_JSON_NAME
-
FIELD_NAME_TYPE
public static final Name FIELD_NAME_TYPE
-
FIELD_NAME_NUMBER
public static final Name FIELD_NAME_NUMBER
-
FIELD_NAME_OPTIONS
public static final Name FIELD_NAME_OPTIONS
-
name
public final FieldName name
The field name
-
jsonName
public final Opt<java.lang.String> jsonName
The field JSON name
-
type
public final FieldType type
The datatype of the field
-
number
public final java.lang.Integer number
The field number
-
options
public final java.util.List<Option> options
The protocol buffer options
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
withNumber
public Field withNumber(java.lang.Integer number)
-
-