public enum Field.Cardinality extends Enum<Field.Cardinality> implements Internal.EnumLite
Whether a field is optional, required, or repeated.
Protobuf enum google.protobuf.Field.Cardinality
Implements
Internal.EnumLiteStatic Fields |
|
---|---|
Name | Description |
CARDINALITY_OPTIONAL |
For optional fields. |
CARDINALITY_OPTIONAL_VALUE |
For optional fields. |
CARDINALITY_REPEATED |
For repeated fields. |
CARDINALITY_REPEATED_VALUE |
For repeated fields. |
CARDINALITY_REQUIRED |
For required fields. Proto2 syntax only. |
CARDINALITY_REQUIRED_VALUE |
For required fields. Proto2 syntax only. |
CARDINALITY_UNKNOWN |
For fields with unknown cardinality. |
CARDINALITY_UNKNOWN_VALUE |
For fields with unknown cardinality. |
UNRECOGNIZED |
Static Methods |
|
---|---|
Name | Description |
forNumber(int value) |
|
internalGetValueMap() |
|
internalGetVerifier() |
|
valueOf(int value) |
Deprecated. Use #forNumber(int) instead. |
valueOf(String name) |
|
values() |
Methods |
|
---|---|
Name | Description |
getNumber() |