Reference documentation and code samples for the proto library Client class FeatureSupport.
Information about the support window of a feature.
Generated from protobuf message google.protobuf.FieldOptions.FeatureSupport
Namespace
Google \ Protobuf \ Internal \ FieldOptionsMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ edition_introduced |
int
The edition that this feature was first available in. In editions earlier than this one, the default assigned to EDITION_LEGACY will be used, and proto files will not be able to override it. |
↳ edition_deprecated |
int
The edition this feature becomes deprecated in. Using this after this edition may trigger warnings. |
↳ deprecation_warning |
string
The deprecation warning text if this feature is used after the edition it was marked deprecated in. |
↳ edition_removed |
int
The edition this feature is no longer available in. In editions after this one, the last default assigned will be used, and proto files will not be able to override it. |
↳ removal_error |
string
The removal error text if this feature is used after the edition it was removed in. |
getEditionIntroduced
The edition that this feature was first available in. In editions earlier than this one, the default assigned to EDITION_LEGACY will be used, and proto files will not be able to override it.
| Returns | |
|---|---|
| Type | Description |
int |
one of the values in {@see \Google\Protobuf\Internal\Edition} |
hasEditionIntroduced
clearEditionIntroduced
setEditionIntroduced
The edition that this feature was first available in. In editions earlier than this one, the default assigned to EDITION_LEGACY will be used, and proto files will not be able to override it.
| Parameter | |
|---|---|
| Name | Description |
var |
int
one of the values in Google\Protobuf\Internal\Edition |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEditionDeprecated
The edition this feature becomes deprecated in. Using this after this edition may trigger warnings.
| Returns | |
|---|---|
| Type | Description |
int |
one of the values in {@see \Google\Protobuf\Internal\Edition} |
hasEditionDeprecated
clearEditionDeprecated
setEditionDeprecated
The edition this feature becomes deprecated in. Using this after this edition may trigger warnings.
| Parameter | |
|---|---|
| Name | Description |
var |
int
one of the values in Google\Protobuf\Internal\Edition |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDeprecationWarning
The deprecation warning text if this feature is used after the edition it was marked deprecated in.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasDeprecationWarning
clearDeprecationWarning
setDeprecationWarning
The deprecation warning text if this feature is used after the edition it was marked deprecated in.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEditionRemoved
The edition this feature is no longer available in. In editions after this one, the last default assigned will be used, and proto files will not be able to override it.
| Returns | |
|---|---|
| Type | Description |
int |
one of the values in {@see \Google\Protobuf\Internal\Edition} |
hasEditionRemoved
clearEditionRemoved
setEditionRemoved
The edition this feature is no longer available in. In editions after this one, the last default assigned will be used, and proto files will not be able to override it.
| Parameter | |
|---|---|
| Name | Description |
var |
int
one of the values in Google\Protobuf\Internal\Edition |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRemovalError
The removal error text if this feature is used after the edition it was removed in.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasRemovalError
clearRemovalError
setRemovalError
The removal error text if this feature is used after the edition it was removed in.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|