GoogleDevtoolsRemoteworkersV1test2Digest class
The CommandTask and CommandResult messages assume the existence of a service that can serve blobs of content, identified by a hash and size known as a "digest." The method by which these blobs may be retrieved is not specified here, but a model implementation is in the Remote Execution API's "ContentAddressibleStorage" interface. In the context of the RWAPI, a Digest will virtually always refer to the contents of a file or a directory. The latter is represented by the byte-encoded Directory message.
Constructors
Properties
- hash ↔ String
-
A string-encoded hash (eg "1a2b3c", not the byte array
0x1a, 0x2b, 0x3c
) using an implementation-defined hash algorithm (eg SHA-256).read / write - hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- sizeBytes ↔ String
-
The size of the contents. While this is not strictly required as part of
an identifier (after all, any given hash will have exactly one canonical
size), it's useful in almost all cases when one might want to send or
retrieve blobs of content and is included here for this reason.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Map< String, Object> -
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited