Package org.microproxy.contentviews
Class ProtoSchema.MessageType
java.lang.Object
org.microproxy.contentviews.ProtoSchema.MessageType
- Enclosing class:
ProtoSchema
A message type: its full name and fields.
-
Method Summary
Modifier and TypeMethodDescriptionenumType(int number) The enum type of an enum field.field(int number) The field withnumber.The field namedname.fields()Returns the fields, in declaration order.fullName()Returns the full name, such asexample.Order.Item.booleanmapEntry()Returns whether this is the entry type of a map field (key= 1,value= 2).toString()
-
Method Details
-
fullName
Returns the full name, such asexample.Order.Item.- Returns:
- the full name, such as
example.Order.Item
-
fields
Returns the fields, in declaration order.- Returns:
- the fields, in declaration order
-
field
The field withnumber.- Parameters:
number- the field number- Returns:
- the field, or
nullif the type declares none
-
field
The field namedname.- Parameters:
name- the field name- Returns:
- the field, or
nullif the type declares none
-
enumType
The enum type of an enum field.- Parameters:
number- the field number- Returns:
- the enum type, or empty if the field is not an enum or its type is unknown
-
mapEntry
public boolean mapEntry()Returns whether this is the entry type of a map field (key= 1,value= 2).- Returns:
- whether this is the entry type of a map field (
key= 1,value= 2)
-
toString
-