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 \ FieldOptionsMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
TARGET_TYPE_UNKNOWN
Value: 0Generated from protobuf enum TARGET_TYPE_UNKNOWN = 0;
TARGET_TYPE_FILE
Value: 1Generated from protobuf enum TARGET_TYPE_FILE = 1;
TARGET_TYPE_EXTENSION_RANGE
Value: 2Generated from protobuf enum TARGET_TYPE_EXTENSION_RANGE = 2;
TARGET_TYPE_MESSAGE
Value: 3Generated from protobuf enum TARGET_TYPE_MESSAGE = 3;
TARGET_TYPE_FIELD
Value: 4Generated from protobuf enum TARGET_TYPE_FIELD = 4;
TARGET_TYPE_ONEOF
Value: 5Generated from protobuf enum TARGET_TYPE_ONEOF = 5;
TARGET_TYPE_ENUM
Value: 6Generated from protobuf enum TARGET_TYPE_ENUM = 6;
TARGET_TYPE_ENUM_ENTRY
Value: 7Generated from protobuf enum TARGET_TYPE_ENUM_ENTRY = 7;
TARGET_TYPE_SERVICE
Value: 8Generated from protobuf enum TARGET_TYPE_SERVICE = 8;
TARGET_TYPE_METHOD
Value: 9Generated from protobuf enum TARGET_TYPE_METHOD = 9;