Reference documentation and code samples for the proto library Client class EnumValueDescriptorProto.
Describes a value within an enum.
Generated from protobuf message google.protobuf.EnumValueDescriptorProto
Namespace
Google \ Protobuf \ InternalMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
|
↳ number |
int
|
↳ options |
EnumValueOptions
|
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 |
|
getNumber
Generated from protobuf field optional int32 number = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
hasNumber
clearNumber
setNumber
Generated from protobuf field optional int32 number = 2;
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOptions
Generated from protobuf field optional .google.protobuf.EnumValueOptions options = 3;
| Returns | |
|---|---|
| Type | Description |
EnumValueOptions|null |
|
hasOptions
clearOptions
setOptions
Generated from protobuf field optional .google.protobuf.EnumValueOptions options = 3;
| Parameter | |
|---|---|
| Name | Description |
var |
EnumValueOptions
|
| Returns | |
|---|---|
| Type | Description |
$this |
|