Protobuf type google.protobuf.FieldDescriptorProto.Type
Constants |
public Google Generated from protobuf enum TYPE_BOOL = 8; |
public Google New in version 2. Generated from protobuf enum TYPE_BYTES = 12; |
public Google 0 is reserved for errors. Order is weird for historical reasons. Generated from protobuf enum TYPE_DOUBLE = 1; |
public Google Generated from protobuf enum TYPE_ENUM = 14; |
public Google Generated from protobuf enum TYPE_FIXED32 = 7; |
public Google Generated from protobuf enum TYPE_FIXED64 = 6; |
public Google Generated from protobuf enum TYPE_FLOAT = 2; |
public Google Tag-delimited aggregate. Group type is deprecated and not supported after google.protobuf. However, Proto3
implementations should still be able to parse the group wire format and
treat group fields as unknown fields. In Editions, the group wire format
can be enabled via the Generated from protobuf enum TYPE_GROUP = 10; |
public Google Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely. Generated from protobuf enum TYPE_INT32 = 5; |
public Google Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely. Generated from protobuf enum TYPE_INT64 = 3; |
public Google Length-delimited aggregate. Generated from protobuf enum TYPE_MESSAGE = 11; |
public Google Generated from protobuf enum TYPE_SFIXED32 = 15; |
public Google Generated from protobuf enum TYPE_SFIXED64 = 16; |
public Google Uses ZigZag encoding. Generated from protobuf enum TYPE_SINT32 = 17; |
public Google Uses ZigZag encoding. Generated from protobuf enum TYPE_SINT64 = 18; |
public Google Generated from protobuf enum TYPE_STRING = 9; |
public Google Generated from protobuf enum TYPE_UINT32 = 13; |
public Google Generated from protobuf enum TYPE_UINT64 = 4; |
Methods |
public static name( $value) |
public static value( $name) |
Properties |
private static $valueToName = [1 => 'TYPE_DOUBLE', 2 => 'TYPE_FLOAT', 3 => 'TYPE_INT64', 4 => 'TYPE_UINT64', 5 => 'TYPE_INT32', 6 => 'TYPE_FIXED64', 7 => 'TYPE_FIXED32', 8 => 'TYPE_BOOL', 9 => 'TYPE_STRING', 10 => 'TYPE_GROUP', 11 => 'TYPE_MESSAGE', 12 => 'TYPE_BYTES', 13 => 'TYPE_UINT32', 14 => 'TYPE_ENUM', 15 => 'TYPE_SFIXED32', 16 => 'TYPE_SFIXED64', 17 => 'TYPE_SINT32', 18 => 'TYPE_SINT64'] |
Properties |
private static $valueToName = [1 => 'TYPE_DOUBLE', 2 => 'TYPE_FLOAT', 3 => 'TYPE_INT64', 4 => 'TYPE_UINT64', 5 => 'TYPE_INT32', 6 => 'TYPE_FIXED64', 7 => 'TYPE_FIXED32', 8 => 'TYPE_BOOL', 9 => 'TYPE_STRING', 10 => 'TYPE_GROUP', 11 => 'TYPE_MESSAGE', 12 => 'TYPE_BYTES', 13 => 'TYPE_UINT32', 14 => 'TYPE_ENUM', 15 => 'TYPE_SFIXED32', 16 => 'TYPE_SFIXED64', 17 => 'TYPE_SINT32', 18 => 'TYPE_SINT64'] |
Methods |
public static name( $value) |
public static value( $name) |