Skip to main content

Class: NamePart

protobuf.UninterpretedOption.NamePart

Represents a NamePart.

Implements#

Constructors#

constructor#

new NamePart(properties?)

Constructs a new NamePart.

Parameters#

NameType
properties?INamePart

Properties#

isExtension#

isExtension: boolean

NamePart isExtension.

Implementation of#

INamePart.isExtension


namePart#

namePart: string

NamePart namePart.

Implementation of#

INamePart.namePart

Methods#

toJSON#

toJSON(): Object

Converts this NamePart to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): NamePart

Decodes a NamePart message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

NamePart

NamePart


decodeDelimited#

Static decodeDelimited(reader): NamePart

Decodes a NamePart message from the specified reader or buffer, length delimited.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

NamePart

NamePart


encode#

Static encode(message, writer?): Writer

Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.

Parameters#

NameTypeDescription
messageINamePartNamePart message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.

Parameters#

NameTypeDescription
messageINamePartNamePart message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static fromObject(object): NamePart

Creates a NamePart message from a plain object. Also converts values to their respective internal types.

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

NamePart

NamePart


toObject#

Static toObject(message, options?): Object

Creates a plain object from a NamePart message. Also converts values to other types if specified.

Parameters#

NameTypeDescription
messageNamePartNamePart
options?IConversionOptions-

Returns#

Object

Plain object