Skip to main content

Class: FeatureSet

google.protobuf.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​

▸ create(properties?): FeatureSet & $Properties

Creates a new FeatureSet instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

FeatureSet & $Properties

FeatureSet instance

▸ create(properties?): FeatureSet

Parameters​

NameType
properties?$Properties

Returns​

FeatureSet


decode​

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

Decodes a FeatureSet message from the specified reader or buffer.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage 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​

▸ decodeDelimited(reader): FeatureSet & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader 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​

▸ encode(message, writer?): Writer

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

Parameters​

NameTypeDescription
message$PropertiesFeatureSet message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

NameTypeDescription
message$PropertiesFeatureSet message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): FeatureSet

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

FeatureSet

FeatureSet


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageFeatureSetFeatureSet
options?IConversionOptionsConversion options

Returns​

Object

Plain object