Google.Protobuf.WellKnownTypes.Field.Types

Container for nested types declared in the Field message type.

Summary

Public types

Cardinality{
  Unknown = 0,
  Optional = 1,
  Required = 2,
  Repeated = 3
}
enum
Whether a field is optional, required, or repeated.
Kind{
  TypeUnknown = 0,
  TypeDouble = 1,
  TypeFloat = 2,
  TypeInt64 = 3,
  TypeUint64 = 4,
  TypeInt32 = 5,
  TypeFixed64 = 6,
  TypeFixed32 = 7,
  TypeBool = 8,
  TypeString = 9,
  TypeGroup = 10,
  TypeMessage = 11,
  TypeBytes = 12,
  TypeUint32 = 13,
  TypeEnum = 14,
  TypeSfixed32 = 15,
  TypeSfixed64 = 16,
  TypeSint32 = 17,
  TypeSint64 = 18
}
enum
Basic field types.

Public types

Cardinality

 Cardinality

Whether a field is optional, required, or repeated.

Properties
Optional

For optional fields.

Repeated

For repeated fields.

Required

For required fields.

Proto2 syntax only.

Unknown

For fields with unknown cardinality.

Kind

 Kind

Basic field types.

Properties
TypeBool

Field type bool.

TypeBytes

Field type bytes.

TypeDouble

Field type double.

TypeEnum

Field type enum.

TypeFixed32

Field type fixed32.

TypeFixed64

Field type fixed64.

TypeFloat

Field type float.

TypeGroup

Field type group.

Proto2 syntax only, and deprecated.

TypeInt32

Field type int32.

TypeInt64

Field type int64.

TypeMessage

Field type message.

TypeSfixed32

Field type sfixed32.

TypeSfixed64

Field type sfixed64.

TypeSint32

Field type sint32.

TypeSint64

Field type sint64.

TypeString

Field type string.

TypeUint32

Field type uint32.

TypeUint64

Field type uint64.

TypeUnknown

Field type unknown.