class OptionTargetType (View source)

This indicates the types of entities that the field may apply to when used as an option. If it is unset, then the field may be freely used as an option on any kind of entity.

Protobuf type google.protobuf.FieldOptions.OptionTargetType

Constants

TARGET_TYPE_UNKNOWN

Generated from protobuf enum TARGET_TYPE_UNKNOWN = 0;

TARGET_TYPE_FILE

Generated from protobuf enum TARGET_TYPE_FILE = 1;

TARGET_TYPE_EXTENSION_RANGE

Generated from protobuf enum TARGET_TYPE_EXTENSION_RANGE = 2;

TARGET_TYPE_MESSAGE

Generated from protobuf enum TARGET_TYPE_MESSAGE = 3;

TARGET_TYPE_FIELD

Generated from protobuf enum TARGET_TYPE_FIELD = 4;

TARGET_TYPE_ONEOF

Generated from protobuf enum TARGET_TYPE_ONEOF = 5;

TARGET_TYPE_ENUM

Generated from protobuf enum TARGET_TYPE_ENUM = 6;

TARGET_TYPE_ENUM_ENTRY

Generated from protobuf enum TARGET_TYPE_ENUM_ENTRY = 7;

TARGET_TYPE_SERVICE

Generated from protobuf enum TARGET_TYPE_SERVICE = 8;

TARGET_TYPE_METHOD

Generated from protobuf enum TARGET_TYPE_METHOD = 9;

Methods

static 
name($value)

No description

static 
value($name)

No description

Details

static name($value)

No description

Parameters

$value

static value($name)

No description

Parameters

$name