Class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata

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

The metadata for a directory. Similar to the equivalent message in the Remote Execution API.

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) ⇒ GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata

Returns a new instance of GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata.


2778
2779
2780
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2778

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

Instance Attribute Details

#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


2771
2772
2773
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2771

def digest
  @digest
end

#pathString

The path of the directory, as in FileMetadata.path. Corresponds to the JSON property path

Returns:

  • (String)

2776
2777
2778
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2776

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2783
2784
2785
2786
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2783

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