public static final class MessageType.Field extends Object
Constructor and Description |
---|
Field(MessageType.Label label,
String type,
String name,
int tag,
String documentation,
List<Option> options) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getDefault()
Returns the
default option value or null . |
String |
getDocumentation() |
MessageType.Label |
getLabel() |
String |
getName() |
List<Option> |
getOptions() |
int |
getTag() |
String |
getType()
Returns the type of this field.
|
int |
hashCode() |
boolean |
isDeprecated()
Returns true when the
deprecated option is present and set to true. |
boolean |
isPacked()
Returns true when the
packed option is present and set to true. |
String |
toString() |
public MessageType.Label getLabel()
public String getType()
int64
or bytes
.public String getName()
public int getTag()
public String getDocumentation()
public boolean isDeprecated()
deprecated
option is present and set to true.public boolean isPacked()
packed
option is present and set to true.public String getDefault()
default
option value or null
.Copyright © 2023 Square, Inc.. All rights reserved.