Class: Config
Defined in: WAProto/index.d.ts:10645
Represents a Config.
Implements
Constructors
new Config()
new Config(
properties
?):Config
Defined in: WAProto/index.d.ts:10651
Constructs a new Config.
Parameters
properties?
Properties to set
Returns
Properties
field
field:
object
Defined in: WAProto/index.d.ts:10654
Config field.
Index Signature
[k
: string
]: IField
Implementation of
version?
optional
version:null
|number
Defined in: WAProto/index.d.ts:10657
Config version.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:10727
Converts this Config to JSON.
Returns
object
JSON object
create()
static
create(properties
?):Config
Defined in: WAProto/index.d.ts:10664
Creates a new Config instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Config instance
decode()
static
decode(reader
,length
?):Config
Defined in: WAProto/index.d.ts:10690
Decodes a Config message from the specified reader or buffer.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
length?
number
Message length if known beforehand
Returns
Config
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):Config
Defined in: WAProto/index.d.ts:10699
Decodes a Config message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
Config
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
static
encode(message
,writer
?):Writer
Defined in: WAProto/index.d.ts:10672
Encodes the specified Config message. Does not implicitly verify messages.
Parameters
message
Config message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
static
encodeDelimited(message
,writer
?):Writer
Defined in: WAProto/index.d.ts:10680
Encodes the specified Config message, length delimited. Does not implicitly verify messages.
Parameters
message
Config message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):Config
Defined in: WAProto/index.d.ts:10713
Creates a Config message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
Config
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:10734
Gets the default type url for Config
Parameters
typeUrlPrefix?
string
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
string
The default type url
toObject()
static
toObject(message
,options
?):object
Defined in: WAProto/index.d.ts:10721
Creates a plain object from a Config message. Also converts values to other types if specified.
Parameters
message
Config
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:10706
Verifies a Config message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not