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.Serializable
A single field of a message type- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Name
FIELD_NAME_JSON_NAME
static Name
FIELD_NAME_NAME
static Name
FIELD_NAME_NUMBER
static Name
FIELD_NAME_OPTIONS
static Name
FIELD_NAME_TYPE
Opt<java.lang.String>
jsonName
The field JSON nameFieldName
name
The field namejava.lang.Integer
number
The field numberjava.util.List<Option>
options
The protocol buffer optionsFieldType
type
The datatype of the fieldstatic Name
TYPE_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
Field
withJsonName(Opt<java.lang.String> jsonName)
Field
withName(FieldName name)
Field
withNumber(java.lang.Integer number)
Field
withOptions(java.util.List<Option> options)
Field
withType(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
withNumber
public Field withNumber(java.lang.Integer number)
-
-