Reference documentation and code samples for the proto library Client class OneofOptions.
Generated from protobuf message google.protobuf.OneofOptions
Namespace
Google \ Protobuf \ InternalMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ features |
FeatureSet
Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language. |
↳ uninterpreted_option |
array<UninterpretedOption>
The parser stores options it doesn't recognize here. See above. |
getFeatures
Any features defined in the specific edition.
WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
| Returns | |
|---|---|
| Type | Description |
FeatureSet|null |
|
hasFeatures
clearFeatures
setFeatures
Any features defined in the specific edition.
WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
| Parameter | |
|---|---|
| Name | Description |
var |
FeatureSet
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUninterpretedOption
The parser stores options it doesn't recognize here. See above.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<UninterpretedOption> |
|
setUninterpretedOption
The parser stores options it doesn't recognize here. See above.
| Parameter | |
|---|---|
| Name | Description |
var |
array<UninterpretedOption>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|