new OneOf(buildernon-null, messagenon-null, name)
Constructs a new Message OneOf.
Parameters:
Name | Type | Description |
---|---|---|
builder |
ProtoBuf.Builder | Builder reference |
message |
ProtoBuf.Reflect.Message | Message reference |
name |
string | OneOf name |
- Source:
Extends
Members
(non-null) builder :ProtoBuf.Builder
Builder reference.
Type:
- Inherited From:
- Source:
className :string
Fully qualified class name
Type:
- string
- Inherited From:
- Source:
(non-null) fields :Array.<!ProtoBuf.Reflect.Message.Field>
Enclosed fields.
Type:
- Array.<!ProtoBuf.Reflect.Message.Field>
- 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