enum Protobuf::CodeGeneratorRequest::FieldDescriptorProto::Type

Defined in:

protobuf/generator.cr

Enum Members

TYPE_DOUBLE = 1

0 is reserved for errors.

Order is weird for historical reasons.

TYPE_FLOAT = 2
TYPE_INT64 = 3
TYPE_UINT64 = 4

take 10 bytes. Use TYPE_SINT64 if negative

values are likely.

TYPE_INT32 = 5
TYPE_FIXED64 = 6

take 10 bytes. Use TYPE_SINT32 if negative

values are likely.

TYPE_FIXED32 = 7
TYPE_BOOL = 8
TYPE_STRING = 9
TYPE_GROUP = 10
TYPE_MESSAGE = 11
TYPE_BYTES = 12

New in version 2.

TYPE_UINT32 = 13
TYPE_ENUM = 14
TYPE_SFIXED32 = 15
TYPE_SFIXED64 = 16
TYPE_SINT32 = 17
TYPE_SINT64 = 18

Instance Method Summary

Instance methods inherited from struct Enum

to_protobuf(io : IO, embedded = true)
to_protobuf(embedded = true)
to_protobuf

Constructor methods inherited from struct Enum

new(buf : Protobuf::Buffer) new

Class methods inherited from struct Enum

from_protobuf(io : IO) from_protobuf

Instance Method Detail

def type_bool? #

[View source]
def type_bytes? #

[View source]
def type_double? #

[View source]
def type_enum? #

[View source]
def type_fixed32? #

[View source]
def type_fixed64? #

[View source]
def type_float? #

[View source]
def type_group? #

[View source]
def type_int32? #

[View source]
def type_int64? #

[View source]
def type_message? #

[View source]
def type_sfixed32? #

[View source]
def type_sfixed64? #

[View source]
def type_sint32? #

[View source]
def type_sint64? #

[View source]
def type_string? #

[View source]
def type_uint32? #

[View source]
def type_uint64? #

[View source]