Search
Preparing search index...
The search index is not available
@theledger/fabric-mock-stub
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"MockProtoTimestamp"
MockProtoTimestamp
Class MockProtoTimestamp
Hierarchy
Timestamp
MockProtoTimestamp
Index
Modules
Timestamp
Constructors
constructor
Properties
nanos
seconds
extensions
extensions
Binary
Methods
clone
clone
Message
from
Date
get
Extension
get
JsPb
Message
Id
get
Nanos
get
Seconds
read
Binary
Extension
serialize
Binary
serialize
Binary
Extensions
set
Extension
set
Nanos
set
Seconds
to
Array
to
Date
to
Object
to
String
add
ToRepeated
Field
add
ToRepeated
Wrapper
Field
bytes
AsB64
bytes
AsU8
bytes
List
AsB64
bytes
List
AsU8
clone
clone
Message
compare
Extensions
compare
Fields
compute
Oneof
Case
copy
Into
deserialize
Binary
deserialize
Binary
From
Reader
difference
equals
get
Field
get
Field
With
Default
get
Map
Field
get
Optional
Floating
Point
Field
get
Repeated
Floating
Point
Field
get
Repeated
Wrapper
Field
get
Wrapper
Field
initialize
register
Message
Type
serialize
Binary
ToWriter
set
Field
set
Oneof
Field
set
Oneof
Wrapper
Field
set
Repeated
Wrapper
Field
set
Wrapper
Field
to
Map
to
Object
to
Object
Extension
to
Object
List
Constructors
constructor
new
Mock
Proto
Timestamp
(
)
:
MockProtoTimestamp
Returns
MockProtoTimestamp
Properties
nanos
nanos
:
number
seconds
seconds
:
number
Static
extensions
extensions
:
object
Type declaration
[
key:
number
]:
ExtensionFieldInfo
<
Message
>
Static
extensions
Binary
extensions
Binary
:
object
Type declaration
[
key:
number
]:
ExtensionFieldBinaryInfo
<
Message
>
Methods
clone
clone
(
)
:
Message
Returns
Message
clone
Message
clone
Message
(
)
:
Message
Returns
Message
from
Date
from
Date
(
date
:
Date
)
:
void
Parameters
date:
Date
Returns
void
get
Extension
get
Extension<T>
(
fieldInfo
:
ExtensionFieldInfo
<
T
>
)
:
T
Type parameters
T
Parameters
fieldInfo:
ExtensionFieldInfo
<
T
>
Returns
T
get
JsPb
Message
Id
get
JsPb
Message
Id
(
)
:
string
Returns
string
get
Nanos
get
Nanos
(
)
:
number
Returns
number
get
Seconds
get
Seconds
(
)
:
number
Returns
number
read
Binary
Extension
read
Binary
Extension
(
proto
:
Message
, reader
:
BinaryReader
, extensions
:
object
, setExtensionFn
:
function
)
:
void
Parameters
proto:
Message
reader:
BinaryReader
extensions:
object
[
key:
number
]:
ExtensionFieldBinaryInfo
<
Message
>
setExtensionFn:
function
<T>
(
fieldInfo
:
ExtensionFieldInfo
<
T
>
, val
:
T
)
:
void
Type parameters
T
Parameters
fieldInfo:
ExtensionFieldInfo
<
T
>
val:
T
Returns
void
Returns
void
serialize
Binary
serialize
Binary
(
)
:
Uint8Array
Returns
Uint8Array
serialize
Binary
Extensions
serialize
Binary
Extensions
(
proto
:
Message
, writer
:
BinaryWriter
, extensions
:
object
, getExtensionFn
:
function
)
:
void
Parameters
proto:
Message
writer:
BinaryWriter
extensions:
object
[
key:
number
]:
ExtensionFieldBinaryInfo
<
Message
>
getExtensionFn:
function
<T>
(
fieldInfo
:
ExtensionFieldInfo
<
T
>
)
:
T
Type parameters
T
Parameters
fieldInfo:
ExtensionFieldInfo
<
T
>
Returns
T
Returns
void
set
Extension
set
Extension<T>
(
fieldInfo
:
ExtensionFieldInfo
<
T
>
, value
:
T
)
:
void
Type parameters
T
Parameters
fieldInfo:
ExtensionFieldInfo
<
T
>
value:
T
Returns
void
set
Nanos
set
Nanos
(
value
:
number
)
:
void
Parameters
value:
number
Returns
void
set
Seconds
set
Seconds
(
value
:
number
)
:
void
Parameters
value:
number
Returns
void
to
Array
to
Array
(
)
:
Message.MessageArray
Returns
Message.MessageArray
to
Date
to
Date
(
)
:
Date
Returns
Date
to
Object
to
Object
(
includeInstance
?:
boolean
)
:
AsObject
Parameters
Optional
includeInstance:
boolean
Returns
AsObject
to
String
to
String
(
)
:
string
Returns
string
Static
add
ToRepeated
Field
add
ToRepeated
Field
(
msg
:
Message
, fieldNumber
:
number
, value
:
any
, index
?:
number
)
:
void
Parameters
msg:
Message
fieldNumber:
number
value:
any
Optional
index:
number
Returns
void
Static
add
ToRepeated
Wrapper
Field
add
ToRepeated
Wrapper
Field<T>
(
msg
:
Message
, fieldNumber
:
number
, value
:
T
|
undefined
, ctor
:
object
, index
?:
number
)
:
T
Type parameters
T
:
Message
Parameters
msg:
Message
fieldNumber:
number
value:
T
|
undefined
ctor:
object
constructor
:
function
new __type
(
)
:
T
Returns
T
Optional
index:
number
Returns
T
Static
bytes
AsB64
bytes
AsB64
(
bytes
:
Uint8Array
)
:
string
Parameters
bytes:
Uint8Array
Returns
string
Static
bytes
AsU8
bytes
AsU8
(
str
:
string
)
:
Uint8Array
Parameters
str:
string
Returns
Uint8Array
Static
bytes
List
AsB64
bytes
List
AsB64
(
bytesList
:
Uint8Array
[]
)
:
string
[]
Parameters
bytesList:
Uint8Array
[]
Returns
string
[]
Static
bytes
List
AsU8
bytes
List
AsU8
(
strList
:
string
[]
)
:
Uint8Array
[]
Parameters
strList:
string
[]
Returns
Uint8Array
[]
Static
clone
clone<T>
(
msg
:
T
)
:
T
Type parameters
T
:
Message
Parameters
msg:
T
Returns
T
Static
clone
Message
clone
Message<T>
(
msg
:
T
)
:
T
Type parameters
T
:
Message
Parameters
msg:
T
Returns
T
Static
compare
Extensions
compare
Extensions
(
extension1
:
__type
, extension2
:
__type
)
:
boolean
Parameters
extension1:
__type
extension2:
__type
Returns
boolean
Static
compare
Fields
compare
Fields
(
field1
:
any
, field2
:
any
)
:
boolean
Parameters
field1:
any
field2:
any
Returns
boolean
Static
compute
Oneof
Case
compute
Oneof
Case
(
msg
:
Message
, oneof
:
number
[]
)
:
number
Parameters
msg:
Message
oneof:
number
[]
Returns
number
Static
copy
Into
copy
Into
(
fromMessage
:
Message
, toMessage
:
Message
)
:
void
Parameters
fromMessage:
Message
toMessage:
Message
Returns
void
Static
deserialize
Binary
deserialize
Binary
(
bytes
:
Uint8Array
)
:
Timestamp
Parameters
bytes:
Uint8Array
Returns
Timestamp
Static
deserialize
Binary
From
Reader
deserialize
Binary
From
Reader
(
message
:
Timestamp
, reader
:
BinaryReader
)
:
Timestamp
Parameters
message:
Timestamp
reader:
BinaryReader
Returns
Timestamp
Static
difference
difference<T>
(
m1
:
T
, m2
:
T
)
:
T
Type parameters
T
:
Message
Parameters
m1:
T
m2:
T
Returns
T
Static
equals
equals
(
m1
:
Message
, m2
:
Message
)
:
boolean
Parameters
m1:
Message
m2:
Message
Returns
boolean
Static
get
Field
get
Field
(
msg
:
Message
, fieldNumber
:
number
)
:
FieldValue
|
null
Parameters
msg:
Message
fieldNumber:
number
Returns
FieldValue
|
null
Static
get
Field
With
Default
get
Field
With
Default<T>
(
msg
:
Message
, fieldNumber
:
number
, defaultValue
:
T
)
:
T
Type parameters
T
Parameters
msg:
Message
fieldNumber:
number
defaultValue:
T
Returns
T
Static
get
Map
Field
get
Map
Field
(
msg
:
Message
, fieldNumber
:
number
, noLazyCreate
:
boolean
, valueCtor
:
Message
)
:
Map
<
any
,
any
>
Parameters
msg:
Message
fieldNumber:
number
noLazyCreate:
boolean
valueCtor:
Message
Returns
Map
<
any
,
any
>
Static
get
Optional
Floating
Point
Field
get
Optional
Floating
Point
Field
(
msg
:
Message
, fieldNumber
:
number
)
:
number
|
undefined
Parameters
msg:
Message
fieldNumber:
number
Returns
number
|
undefined
Static
get
Repeated
Floating
Point
Field
get
Repeated
Floating
Point
Field
(
msg
:
Message
, fieldNumber
:
number
)
:
number
[]
Parameters
msg:
Message
fieldNumber:
number
Returns
number
[]
Static
get
Repeated
Wrapper
Field
get
Repeated
Wrapper
Field<T>
(
msg
:
Message
, ctor
:
object
, fieldNumber
:
number
)
:
T
[]
Type parameters
T
:
Message
Parameters
msg:
Message
ctor:
object
constructor
:
function
new __type
(
)
:
T
Returns
T
fieldNumber:
number
Returns
T
[]
Static
get
Wrapper
Field
get
Wrapper
Field<T>
(
msg
:
Message
, ctor
:
object
, fieldNumber
:
number
, required
?:
number
)
:
T
Type parameters
T
:
Message
Parameters
msg:
Message
ctor:
object
constructor
:
function
new __type
(
)
:
T
Returns
T
fieldNumber:
number
Optional
required:
number
Returns
T
Static
initialize
initialize
(
msg
:
Message
, data
:
Message.MessageArray
, messageId
:
string
|
number
, suggestedPivot
:
number
, repeatedFields
?:
number
[]
, oneofFields
?:
number
[]
[]
|
null
)
:
void
Parameters
msg:
Message
data:
Message.MessageArray
messageId:
string
|
number
suggestedPivot:
number
Optional
repeatedFields:
number
[]
Optional
oneofFields:
number
[]
[]
|
null
Returns
void
Static
register
Message
Type
register
Message
Type
(
id
:
number
, constructor
:
Message
)
:
void
Parameters
id:
number
constructor:
Message
Returns
void
Static
serialize
Binary
ToWriter
serialize
Binary
ToWriter
(
message
:
Timestamp
, writer
:
BinaryWriter
)
:
void
Parameters
message:
Timestamp
writer:
BinaryWriter
Returns
void
Static
set
Field
set
Field
(
msg
:
Message
, fieldNumber
:
number
, value
:
FieldValue
)
:
void
Parameters
msg:
Message
fieldNumber:
number
value:
FieldValue
Returns
void
Static
set
Oneof
Field
set
Oneof
Field
(
msg
:
Message
, fieldNumber
:
number
, oneof
:
number
[]
, value
:
FieldValue
)
:
void
Parameters
msg:
Message
fieldNumber:
number
oneof:
number
[]
value:
FieldValue
Returns
void
Static
set
Oneof
Wrapper
Field
set
Oneof
Wrapper
Field
(
msg
:
Message
, fieldNumber
:
number
, oneof
:
number
[]
, value
:
any
)
:
void
Parameters
msg:
Message
fieldNumber:
number
oneof:
number
[]
value:
any
Returns
void
Static
set
Repeated
Wrapper
Field
set
Repeated
Wrapper
Field<T>
(
msg
:
Message
, fieldNumber
:
number
, value
?:
T
[]
)
:
void
Type parameters
T
:
Message
Parameters
msg:
Message
fieldNumber:
number
Optional
value:
T
[]
Returns
void
Static
set
Wrapper
Field
set
Wrapper
Field<T>
(
msg
:
Message
, fieldNumber
:
number
, value
?:
Map
<
any
,
any
>
|
T
)
:
void
Type parameters
T
:
Message
Parameters
msg:
Message
fieldNumber:
number
Optional
value:
Map
<
any
,
any
>
|
T
Returns
void
Static
to
Map
to
Map
(
field
:
any
[]
, mapKeyGetterFn
:
function
, toObjectFn
?:
Message.StaticToObject
, includeInstance
?:
boolean
)
:
void
Parameters
field:
any
[]
mapKeyGetterFn:
function
(
field
:
any
)
:
string
Parameters
field:
any
Returns
string
Optional
toObjectFn:
Message.StaticToObject
Optional
includeInstance:
boolean
Returns
void
Static
to
Object
to
Object
(
includeInstance
:
boolean
, msg
:
Timestamp
)
:
AsObject
Parameters
includeInstance:
boolean
msg:
Timestamp
Returns
AsObject
Static
to
Object
Extension
to
Object
Extension
(
msg
:
Message
, obj
:
__type
, extensions
:
object
, getExtensionFn
:
function
, includeInstance
?:
boolean
)
:
void
Parameters
msg:
Message
obj:
__type
extensions:
object
[
key:
number
]:
ExtensionFieldInfo
<
Message
>
getExtensionFn:
function
(
fieldInfo
:
ExtensionFieldInfo
<
Message
>
)
:
Message
Parameters
fieldInfo:
ExtensionFieldInfo
<
Message
>
Returns
Message
Optional
includeInstance:
boolean
Returns
void
Static
to
Object
List
to
Object
List<T>
(
field
:
T
[]
, toObjectFn
:
function
, includeInstance
?:
boolean
)
:
Array
<
__type
>
Type parameters
T
:
Message
Parameters
field:
T
[]
toObjectFn:
function
(
includeInstance
:
boolean
, data
:
T
)
:
__type
Parameters
includeInstance:
boolean
data:
T
Returns
__type
Optional
includeInstance:
boolean
Returns
Array
<
__type
>
Globals
"
Chaincode
Error"
"
Chaincode
Mock
Stub"
"
Chaincode
Proposal
Creator"
"
Composite
Keys"
"
IdBytes"
"
Mock
History
Query
Iterator"
"
Mock
Proto
Timestamp"
"
Mock
State
Query
Iterator"
"constants/errors"
"index"
"utils/datatransform"
"utils/helpers"
Mock
Proto
Timestamp
constructor
nanos
seconds
extensions
extensions
Binary
clone
clone
Message
from
Date
get
Extension
get
JsPb
Message
Id
get
Nanos
get
Seconds
read
Binary
Extension
serialize
Binary
serialize
Binary
Extensions
set
Extension
set
Nanos
set
Seconds
to
Array
to
Date
to
Object
to
String
add
ToRepeated
Field
add
ToRepeated
Wrapper
Field
bytes
AsB64
bytes
AsU8
bytes
List
AsB64
bytes
List
AsU8
clone
clone
Message
compare
Extensions
compare
Fields
compute
Oneof
Case
copy
Into
deserialize
Binary
deserialize
Binary
From
Reader
difference
equals
get
Field
get
Field
With
Default
get
Map
Field
get
Optional
Floating
Point
Field
get
Repeated
Floating
Point
Field
get
Repeated
Wrapper
Field
get
Wrapper
Field
initialize
register
Message
Type
serialize
Binary
ToWriter
set
Field
set
Oneof
Field
set
Oneof
Wrapper
Field
set
Repeated
Wrapper
Field
set
Wrapper
Field
to
Map
to
Object
to
Object
Extension
to
Object
List
Generated using
TypeDoc