Class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemoteworkersV1test2FileMetadata

Inherits:
Object
  • Object
show all
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 metadata for a file. 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) ⇒ GoogleDevtoolsRemoteworkersV1test2FileMetadata

Returns a new instance of GoogleDevtoolsRemoteworkersV1test2FileMetadata.



2735
2736
2737
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2735

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

Instance Attribute Details

#contentsString

If the file is small enough, its contents may also or alternatively be listed here. Corresponds to the JSON property contents NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2706
2707
2708
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2706

def contents
  @contents
end

#digestGoogle::Apis::RemotebuildexecutionV1alpha::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



2718
2719
2720
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2718

def digest
  @digest
end

#is_executableBoolean Also known as: is_executable?

Properties of the file Corresponds to the JSON property isExecutable

Returns:

  • (Boolean)


2723
2724
2725
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2723

def is_executable
  @is_executable
end

#pathString

The path of this file. If this message is part of the CommandOutputs.outputs fields, the path is relative to the execution root and must correspond to an entry in CommandTask.outputs.files. If this message is part of a Directory message, then the path is relative to the root of that directory. All paths MUST be delimited by forward slashes. Corresponds to the JSON property path

Returns:

  • (String)


2733
2734
2735
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2733

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2740
2741
2742
2743
2744
2745
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2740

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