Class: Value

ProtoBuf.Reflect.Enum. Value

new Value(buildernon-null, enmnon-null, name, id)

Constructs a new Enum Value.

Parameters:
Name Type Description
builder ProtoBuf.Builder

Builder reference

enm ProtoBuf.Reflect.Enum

Enum reference

name string

Field name

id number

Unique field id

Source:

Extends

Members

(non-null) builder :ProtoBuf.Builder

Builder reference.

Type:
Inherited From:
Source:

className

Source:

id :number

Unique enum value id.

Type:
  • number
Source:

name :string

Object name in namespace.

Type:
  • string
Inherited From:
Source:

(nullable) parent :ProtoBuf.Reflect.T

Parent object.

Type:
Inherited From:
Source:

Methods

build()

Builds this type.

Inherited From:
Source:
Throws:
If this type cannot be built directly
Type
Error

fqn() → {string}

Returns the fully qualified name of this object.

Inherited From:
Source:
Returns:

Fully qualified name as of ".PATH.TO.THIS"

Type
string

toString(includeClassopt)

Returns a string representation of this Reflect object (its fully qualified name).

Parameters:
Name Type Attributes Description
includeClass boolean <optional>

Set to true to include the class name. Defaults to false.

Inherited From:
Source:
Returns:

String representation