proto library Client - Class FeatureSet (v5.36.2)

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

TODO Enums in C++ gencode (and potentially other languages) are not well scoped. This means that each of the feature enums below can clash with each other. The short names we've chosen maximize call-site readability, but leave us very open to this scenario. A future feature will be designed and implemented to handle this, hopefully before we ever hit a conflict here.

Generated from protobuf message google.protobuf.FeatureSet

Namespace

Google \ Protobuf \ Internal

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ field_presence int
↳ enum_type int
↳ repeated_field_encoding int
↳ utf8_validation int
↳ message_encoding int
↳ json_format int
↳ enforce_naming_style int
↳ default_symbol_visibility int
↳ enforce_proto_limits int

getFieldPresence

Generated from protobuf field optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {

Returns
Type Description
int one of the values in {@see \Google\Protobuf\Internal\FeatureSet\FieldPresence}

hasFieldPresence

clearFieldPresence

setFieldPresence

Generated from protobuf field optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {

Parameter
Name Description
var int

one of the values in FeatureSet\FieldPresence

Returns
Type Description
$this

getEnumType

Generated from protobuf field optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {

Returns
Type Description
int one of the values in {@see \Google\Protobuf\Internal\FeatureSet\EnumType}

hasEnumType

clearEnumType

setEnumType

Generated from protobuf field optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {

Parameter
Name Description
var int

one of the values in FeatureSet\EnumType

Returns
Type Description
$this

getRepeatedFieldEncoding

Generated from protobuf field optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {

Returns
Type Description
int one of the values in {@see \Google\Protobuf\Internal\FeatureSet\RepeatedFieldEncoding}

hasRepeatedFieldEncoding

clearRepeatedFieldEncoding

setRepeatedFieldEncoding

Generated from protobuf field optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {

Parameter
Name Description
var int

one of the values in FeatureSet\RepeatedFieldEncoding

Returns
Type Description
$this

getUtf8Validation

Generated from protobuf field optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {

Returns
Type Description
int one of the values in {@see \Google\Protobuf\Internal\FeatureSet\Utf8Validation}

hasUtf8Validation

clearUtf8Validation

setUtf8Validation

Generated from protobuf field optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {

Parameter
Name Description
var int

one of the values in FeatureSet\Utf8Validation

Returns
Type Description
$this

getMessageEncoding

Generated from protobuf field optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {

Returns
Type Description
int one of the values in {@see \Google\Protobuf\Internal\FeatureSet\MessageEncoding}

hasMessageEncoding

clearMessageEncoding

setMessageEncoding

Generated from protobuf field optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = {

Parameter
Name Description
var int

one of the values in FeatureSet\MessageEncoding

Returns
Type Description
$this

getJsonFormat

Generated from protobuf field optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {

Returns
Type Description
int one of the values in {@see \Google\Protobuf\Internal\FeatureSet\JsonFormat}

hasJsonFormat

clearJsonFormat

setJsonFormat

Generated from protobuf field optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = {

Parameter
Name Description
var int

one of the values in FeatureSet\JsonFormat

Returns
Type Description
$this

getEnforceNamingStyle

Generated from protobuf field optional .google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, targets = TARGET_TYPE_EXTENSION_RANGE, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_ONEOF, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_ENUM_ENTRY, targets = TARGET_TYPE_SERVICE, targets = TARGET_TYPE_METHOD, edition_defaults = {

Returns
Type Description
int one of the values in {@see \Google\Protobuf\Internal\FeatureSet\EnforceNamingStyle}

hasEnforceNamingStyle

clearEnforceNamingStyle

setEnforceNamingStyle

Generated from protobuf field optional .google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, targets = TARGET_TYPE_EXTENSION_RANGE, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_ONEOF, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_ENUM_ENTRY, targets = TARGET_TYPE_SERVICE, targets = TARGET_TYPE_METHOD, edition_defaults = {

Parameter
Name Description
var int

one of the values in FeatureSet\EnforceNamingStyle

Returns
Type Description
$this

getDefaultSymbolVisibility

Generated from protobuf field optional .google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, edition_defaults = {

Returns
Type Description
int one of the values in {@see \Google\Protobuf\Internal\FeatureSet\VisibilityFeature\DefaultSymbolVisibility}

hasDefaultSymbolVisibility

clearDefaultSymbolVisibility

setDefaultSymbolVisibility

Generated from protobuf field optional .google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, edition_defaults = {

Parameter
Name Description
var int

one of the values in FeatureSet\VisibilityFeature\DefaultSymbolVisibility

Returns
Type Description
$this

getEnforceProtoLimits

Generated from protobuf field optional .google.protobuf.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits enforce_proto_limits = 9 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_ONEOF, edition_defaults = {

Returns
Type Description
int one of the values in {@see \Google\Protobuf\Internal\FeatureSet\ProtoLimitsFeature\EnforceProtoLimits}

hasEnforceProtoLimits

clearEnforceProtoLimits

setEnforceProtoLimits

Generated from protobuf field optional .google.protobuf.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits enforce_proto_limits = 9 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_ONEOF, edition_defaults = {

Parameter
Name Description
var int

one of the values in FeatureSet\ProtoLimitsFeature\EnforceProtoLimits

Returns
Type Description
$this