FeatureSet

google.protobuf. FeatureSet

Represents a FeatureSet.

Constructor

new FeatureSet(propertiesopt)

Constructs a new FeatureSet.

Parameters:
Name Type Attributes Description
properties google.protobuf.IFeatureSet <optional>

Properties to set

Implements:
  • IFeatureSet

Classes

ProtoLimitsFeature
VisibilityFeature

Members

defaultSymbolVisibility

FeatureSet defaultSymbolVisibility.

enforceNamingStyle

FeatureSet enforceNamingStyle.

enforceProtoLimits

FeatureSet enforceProtoLimits.

enumType

FeatureSet enumType.

fieldPresence

FeatureSet fieldPresence.

jsonFormat

FeatureSet jsonFormat.

messageEncoding

FeatureSet messageEncoding.

repeatedFieldEncoding

FeatureSet repeatedFieldEncoding.

utf8Validation

FeatureSet utf8Validation.

EnforceNamingStyle

EnforceNamingStyle enum.

Properties:
Name Type Description
ENFORCE_NAMING_STYLE_UNKNOWN number

ENFORCE_NAMING_STYLE_UNKNOWN value

STYLE2024 number

STYLE2024 value

STYLE_LEGACY number

STYLE_LEGACY value

STYLE2026 number

STYLE2026 value

EnumType

EnumType enum.

Properties:
Name Type Description
ENUM_TYPE_UNKNOWN number

ENUM_TYPE_UNKNOWN value

OPEN number

OPEN value

CLOSED number

CLOSED value

FieldPresence

FieldPresence enum.

Properties:
Name Type Description
FIELD_PRESENCE_UNKNOWN number

FIELD_PRESENCE_UNKNOWN value

EXPLICIT number

EXPLICIT value

IMPLICIT number

IMPLICIT value

LEGACY_REQUIRED number

LEGACY_REQUIRED value

JsonFormat

JsonFormat enum.

Properties:
Name Type Description
JSON_FORMAT_UNKNOWN number

JSON_FORMAT_UNKNOWN value

ALLOW number

ALLOW value

LEGACY_BEST_EFFORT number

LEGACY_BEST_EFFORT value

MessageEncoding

MessageEncoding enum.

Properties:
Name Type Description
MESSAGE_ENCODING_UNKNOWN number

MESSAGE_ENCODING_UNKNOWN value

LENGTH_PREFIXED number

LENGTH_PREFIXED value

DELIMITED number

DELIMITED value

RepeatedFieldEncoding

RepeatedFieldEncoding enum.

Properties:
Name Type Description
REPEATED_FIELD_ENCODING_UNKNOWN number

REPEATED_FIELD_ENCODING_UNKNOWN value

PACKED number

PACKED value

EXPANDED number

EXPANDED value

Utf8Validation

Utf8Validation enum.

Properties:
Name Type Description
UTF8_VALIDATION_UNKNOWN number

UTF8_VALIDATION_UNKNOWN value

VERIFY number

VERIFY value

NONE number

NONE value

Methods

toJSON() → {Object.<string, *>}

Converts this FeatureSet to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(static) create(propertiesopt) → {google.protobuf.FeatureSet}

Creates a new FeatureSet instance using the specified properties.

Parameters:
Name Type Attributes Description
properties google.protobuf.IFeatureSet <optional>

Properties to set

Returns:
Type Description
google.protobuf.FeatureSet

FeatureSet instance

(static) decode(reader, lengthopt) → {google.protobuf.FeatureSet}

Decodes a FeatureSet message from the specified reader or buffer.

Parameters:
Name Type Attributes Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

length number <optional>

Message length if known beforehand

Returns:
Type Description
google.protobuf.FeatureSet

FeatureSet

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) decodeDelimited(reader) → {google.protobuf.FeatureSet}

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

Parameters:
Name Type Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

Returns:
Type Description
google.protobuf.FeatureSet

FeatureSet

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) encode(message, writeropt) → {$protobuf.Writer}

Encodes the specified FeatureSet message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.protobuf.IFeatureSet

FeatureSet message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}

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

Parameters:
Name Type Attributes Description
message google.protobuf.IFeatureSet

FeatureSet message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) fromObject(object) → {google.protobuf.FeatureSet}

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

Parameters:
Name Type Description
object Object.<string, *>

Plain object

Returns:
Type Description
google.protobuf.FeatureSet

FeatureSet

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for FeatureSet

Parameters:
Name Type Attributes Description
typeUrlPrefix string <optional>

your custom typeUrlPrefix(default "type.googleapis.com")

Returns:
Type Description
string

The default type url

(static) toObject(message, optionsopt) → {Object.<string, *>}

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

Parameters:
Name Type Attributes Description
message google.protobuf.FeatureSet

FeatureSet

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

(static) verify(message) → {string|null}

Verifies a FeatureSet message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

Returns:
Type Description
string | null

null if valid, otherwise the reason why it is not