Class: UserPassword
Defined in: WAProto/index.d.ts:51491
Represents a UserPassword.
Implements
Constructors
new UserPassword()
new UserPassword(
properties
?):UserPassword
Defined in: WAProto/index.d.ts:51497
Constructs a new UserPassword.
Parameters
properties?
Properties to set
Returns
Properties
encoding?
optional
encoding:null
|Encoding
Defined in: WAProto/index.d.ts:51500
UserPassword encoding.
Implementation of
transformedData?
optional
transformedData:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:51509
UserPassword transformedData.
Implementation of
transformer?
optional
transformer:null
|Transformer
Defined in: WAProto/index.d.ts:51503
UserPassword transformer.
Implementation of
transformerArg
transformerArg:
ITransformerArg
[]
Defined in: WAProto/index.d.ts:51506
UserPassword transformerArg.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:51579
Converts this UserPassword to JSON.
Returns
object
JSON object
create()
static
create(properties
?):UserPassword
Defined in: WAProto/index.d.ts:51516
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:51542
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:51551
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:51524
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:51532
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:51565
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:51586
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:51573
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:51558
Verifies a UserPassword message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not