Class: ExtensionRangeOptions
Represents an ExtensionRangeOptions.
Properties
declaration
declaration:
$Properties[]
For external users: DO NOT USE. We are in the process of open sourcing extension declaration and executing internal cleanups before it can be used externally.
features?
optionalfeatures?:$Properties|null
Any features defined in the specific edition.
uninterpretedOption
uninterpretedOption:
$Properties[]
The parser stores options it doesn't recognize here. See above.
verification
verification:
VerificationState
The verification state of the range. TODO: flip the default to DECLARATION once all empty ranges are marked as UNVERIFIED.
Methods
toJSON()
toJSON():
object
Converts this ExtensionRangeOptions to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):ExtensionRangeOptions&$Properties
Creates a new ExtensionRangeOptions instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ExtensionRangeOptions & $Properties
ExtensionRangeOptions instance
Call Signature
staticcreate(properties?):ExtensionRangeOptions
Creates a new ExtensionRangeOptions instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ExtensionRangeOptions
ExtensionRangeOptions instance
decode()
staticdecode(reader,length?):ExtensionRangeOptions&$Properties
Decodes an ExtensionRangeOptions 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
ExtensionRangeOptions & $Properties
ExtensionRangeOptions
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):ExtensionRangeOptions&$Properties
Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
ExtensionRangeOptions & $Properties
ExtensionRangeOptions
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified ExtensionRangeOptions message. Does not implicitly google.protobuf.ExtensionRangeOptions.verify|verify messages.
Parameters
message
ExtensionRangeOptions message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly google.protobuf.ExtensionRangeOptions.verify|verify messages.
Parameters
message
ExtensionRangeOptions message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):ExtensionRangeOptions
Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
ExtensionRangeOptions
ExtensionRangeOptions
toObject()
statictoObject(message,options?):object
Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
Parameters
message
ExtensionRangeOptions
ExtensionRangeOptions
options?
IConversionOptions
Conversion options
Returns
object
Plain object