Class: UserPassword
Defined in: WAProto/index.d.ts:48404
Represents a UserPassword.
Implements
Constructors
new UserPassword()
new UserPassword(
properties
?):UserPassword
Defined in: WAProto/index.d.ts:48410
Constructs a new UserPassword.
Parameters
properties?
Properties to set
Returns
Properties
encoding?
optional
encoding:null
|Encoding
Defined in: WAProto/index.d.ts:48413
UserPassword encoding.
Implementation of
transformedData?
optional
transformedData:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:48422
UserPassword transformedData.
Implementation of
transformer?
optional
transformer:null
|Transformer
Defined in: WAProto/index.d.ts:48416
UserPassword transformer.
Implementation of
transformerArg
transformerArg:
ITransformerArg
[]
Defined in: WAProto/index.d.ts:48419
UserPassword transformerArg.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:48492
Converts this UserPassword to JSON.
Returns
object
JSON object
create()
static
create(properties
?):UserPassword
Defined in: WAProto/index.d.ts:48429
Creates a new UserPassword instance using the specified properties.
Parameters
properties?
Properties to set
Returns
UserPassword instance
decode()
static
decode(reader
,length
?):UserPassword
Defined in: WAProto/index.d.ts:48455
Decodes a UserPassword 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
UserPassword
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):UserPassword
Defined in: WAProto/index.d.ts:48464
Decodes a UserPassword message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
UserPassword
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:48437
Encodes the specified UserPassword message. Does not implicitly verify messages.
Parameters
message
UserPassword 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:48445
Encodes the specified UserPassword message, length delimited. Does not implicitly verify messages.
Parameters
message
UserPassword message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):UserPassword
Defined in: WAProto/index.d.ts:48478
Creates a UserPassword message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
UserPassword
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:48499
Gets the default type url for UserPassword
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:48486
Creates a plain object from a UserPassword message. Also converts values to other types if specified.
Parameters
message
UserPassword
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:48471
Verifies a UserPassword message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not