Reference documentation and code samples for the proto library Client class OneofDescriptorProto.
Describes a oneof.
Generated from protobuf message google.protobuf.OneofDescriptorProto
Namespace
Google \ Protobuf \ InternalMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
|
↳ options |
OneofOptions
|
getName
Generated from protobuf field optional string name = 1;
| Returns | |
|---|---|
| Type | Description |
string |
|
hasName
clearName
setName
Generated from protobuf field optional string name = 1;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOptions
Generated from protobuf field optional .google.protobuf.OneofOptions options = 2;
| Returns | |
|---|---|
| Type | Description |
OneofOptions|null |
|
hasOptions
clearOptions
setOptions
Generated from protobuf field optional .google.protobuf.OneofOptions options = 2;
| Parameter | |
|---|---|
| Name | Description |
var |
OneofOptions
|
| Returns | |
|---|---|
| Type | Description |
$this |
|