Skip to main content

Class: FeatureSet

TODO Enums in C++ gencode (and potentially other languages) are not well scoped. This means that each of the feature enums below can clash with each other. The short names we've chosen maximize call-site readability, but leave us very open to this scenario. A future feature will be designed and implemented to handle this, hopefully before we ever hit a conflict here.

Properties​

enumType​

enumType: EnumType

FeatureSet enumType.


fieldPresence​

fieldPresence: FieldPresence

FeatureSet fieldPresence.


jsonFormat​

jsonFormat: JsonFormat

FeatureSet jsonFormat.


messageEncoding​

messageEncoding: MessageEncoding

FeatureSet messageEncoding.


repeatedFieldEncoding​

repeatedFieldEncoding: RepeatedFieldEncoding

FeatureSet repeatedFieldEncoding.


utf8Validation​

utf8Validation: Utf8Validation

FeatureSet utf8Validation.

Methods​

toJSON()​

toJSON(): object

Converts this FeatureSet to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): FeatureSet & $Properties

Creates a new FeatureSet instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

FeatureSet & $Properties

FeatureSet instance

Call Signature​

static create(properties?): FeatureSet

Creates a new FeatureSet instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

FeatureSet

FeatureSet instance


decode()​

static decode(reader, length?): FeatureSet & $Properties

Decodes a FeatureSet message from the specified reader or buffer.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

length?​

number

Message length if known beforehand

Returns​

FeatureSet & $Properties

FeatureSet

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): FeatureSet & $Properties

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

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

FeatureSet & $Properties

FeatureSet

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

Encodes the specified FeatureSet message. Does not implicitly google.protobuf.FeatureSet.verify|verify messages.

Parameters​

message​

$Properties

FeatureSet message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

Encodes the specified FeatureSet message, length delimited. Does not implicitly google.protobuf.FeatureSet.verify|verify messages.

Parameters​

message​

$Properties

FeatureSet message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): FeatureSet

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

Parameters​

object​

{[k: string]: any; }

Plain object

Returns​

FeatureSet

FeatureSet


toObject()​

static toObject(message, options?): object

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

Parameters​

message​

FeatureSet

FeatureSet

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object