proto library Client - Class OptionTargetType (v5.36.2)

Reference documentation and code samples for the proto library Client class OptionTargetType.

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

Namespace

Google \ Protobuf \ Internal \ FieldOptions

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

TARGET_TYPE_UNKNOWN

Value: 0

Generated from protobuf enum TARGET_TYPE_UNKNOWN = 0;

TARGET_TYPE_FILE

Value: 1

Generated from protobuf enum TARGET_TYPE_FILE = 1;

TARGET_TYPE_EXTENSION_RANGE

Value: 2

Generated from protobuf enum TARGET_TYPE_EXTENSION_RANGE = 2;

TARGET_TYPE_MESSAGE

Value: 3

Generated from protobuf enum TARGET_TYPE_MESSAGE = 3;

TARGET_TYPE_FIELD

Value: 4

Generated from protobuf enum TARGET_TYPE_FIELD = 4;

TARGET_TYPE_ONEOF

Value: 5

Generated from protobuf enum TARGET_TYPE_ONEOF = 5;

TARGET_TYPE_ENUM

Value: 6

Generated from protobuf enum TARGET_TYPE_ENUM = 6;

TARGET_TYPE_ENUM_ENTRY

Value: 7

Generated from protobuf enum TARGET_TYPE_ENUM_ENTRY = 7;

TARGET_TYPE_SERVICE

Value: 8

Generated from protobuf enum TARGET_TYPE_SERVICE = 8;

TARGET_TYPE_METHOD

Value: 9

Generated from protobuf enum TARGET_TYPE_METHOD = 9;