Class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemoteworkersV1test2Blob

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/remotebuildexecution_v1/classes.rb,
generated/google/apis/remotebuildexecution_v1/representations.rb,
generated/google/apis/remotebuildexecution_v1/representations.rb

Overview

Describes a blob of binary content with its digest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemoteworkersV1test2Blob

Returns a new instance of GoogleDevtoolsRemoteworkersV1test2Blob.



2453
2454
2455
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2453

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contentsString

The contents of the blob. Corresponds to the JSON property contents NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2439
2440
2441
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2439

def contents
  @contents
end

#digestGoogle::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemoteworkersV1test2Digest

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. Corresponds to the JSON property digest



2451
2452
2453
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2451

def digest
  @digest
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2458
2459
2460
2461
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2458

def update!(**args)
  @contents = args[:contents] if args.key?(:contents)
  @digest = args[:digest] if args.key?(:digest)
end