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.

Implements

Constructors

constructor

new FeatureSet(properties?): FeatureSet

Constructs a new FeatureSet.

Parameters

NameTypeDescription
properties?IFeatureSetProperties to set

Returns

FeatureSet

Properties

enumType

enumType: EnumType

FeatureSet enumType.

Implementation of

IFeatureSet.enumType


fieldPresence

fieldPresence: FieldPresence

FeatureSet fieldPresence.

Implementation of

IFeatureSet.fieldPresence


jsonFormat

jsonFormat: JsonFormat

FeatureSet jsonFormat.

Implementation of

IFeatureSet.jsonFormat


messageEncoding

messageEncoding: MessageEncoding

FeatureSet messageEncoding.

Implementation of

IFeatureSet.messageEncoding


repeatedFieldEncoding

repeatedFieldEncoding: RepeatedFieldEncoding

FeatureSet repeatedFieldEncoding.

Implementation of

IFeatureSet.repeatedFieldEncoding


utf8Validation

utf8Validation: Utf8Validation

FeatureSet utf8Validation.

Implementation of

IFeatureSet.utf8Validation

Methods

toJSON

toJSON(): Object

Converts this FeatureSet to JSON.

Returns

Object

JSON object


create

create(properties?): FeatureSet

Creates a new FeatureSet instance using the specified properties.

Parameters

NameTypeDescription
properties?IFeatureSetProperties to set

Returns

FeatureSet

FeatureSet instance


decode

decode(reader, length?): FeatureSet

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

FeatureSet

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): FeatureSet

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

FeatureSet

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
messageIFeatureSetFeatureSet 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
messageIFeatureSetFeatureSet 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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for FeatureSet

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


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