Class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemoteworkersV1test2Digest
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemoteworkersV1test2Digest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/remotebuildexecution_v1alpha/classes.rb,
generated/google/apis/remotebuildexecution_v1alpha/representations.rb,
generated/google/apis/remotebuildexecution_v1alpha/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#hash_prop ⇒ String
A string-encoded hash (eg "1a2b3c", not the byte array [0x1a, 0x2b, 0x3c]) using an implementation-defined hash algorithm (eg SHA-256).
-
#size_bytes ⇒ Fixnum
The size of the contents.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsRemoteworkersV1test2Digest
constructor
A new instance of GoogleDevtoolsRemoteworkersV1test2Digest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsRemoteworkersV1test2Digest
Returns a new instance of GoogleDevtoolsRemoteworkersV1test2Digest
3441 3442 3443 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 3441 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hash_prop ⇒ String
A string-encoded hash (eg "1a2b3c", not the byte array [0x1a, 0x2b, 0x3c])
using an implementation-defined hash algorithm (eg SHA-256).
Corresponds to the JSON property hash
3431 3432 3433 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 3431 def hash_prop @hash_prop end |
#size_bytes ⇒ Fixnum
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.
Corresponds to the JSON property sizeBytes
3439 3440 3441 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 3439 def size_bytes @size_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3446 3447 3448 3449 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 3446 def update!(**args) @hash_prop = args[:hash_prop] if args.key?(:hash_prop) @size_bytes = args[:size_bytes] if args.key?(:size_bytes) end |