Class: Google::Apis::RemotebuildexecutionV1::BuildBazelRemoteExecutionV2RequestMetadata

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

An optional Metadata to attach to any RPC request to tell the server about an external context of the request. The server may use this for logging or other purposes. To use it, the client attaches the header to the call using the canonical proto serialization: * name: build.bazel.remote.execution.v2. requestmetadata-bin * contents: the base64 encoded binary RequestMetadata message. Note: the gRPC library serializes binary headers encoded in base 64 by default (https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md# requests). Therefore, if the gRPC library is used to pass/retrieve this metadata, the user may ignore the base64 encoding and assume it is simply serialized as a binary message.

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

Returns a new instance of BuildBazelRemoteExecutionV2RequestMetadata.


1245
1246
1247
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1245

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

Instance Attribute Details

#action_idString

An identifier that ties multiple requests to the same action. For example, multiple requests to the CAS, Action Cache, and Execution API are used in order to compile foo.cc. Corresponds to the JSON property actionId

Returns:

  • (String)

1226
1227
1228
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1226

def action_id
  @action_id
end

#correlated_invocations_idString

An identifier to tie multiple tool invocations together. For example, runs of foo_test, bar_test and baz_test on a post-submit of a given patch. Corresponds to the JSON property correlatedInvocationsId

Returns:

  • (String)

1232
1233
1234
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1232

def correlated_invocations_id
  @correlated_invocations_id
end

#tool_detailsGoogle::Apis::RemotebuildexecutionV1::BuildBazelRemoteExecutionV2ToolDetails

Details for the tool used to call the API. Corresponds to the JSON property toolDetails


1237
1238
1239
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1237

def tool_details
  @tool_details
end

#tool_invocation_idString

An identifier that ties multiple actions together to a final result. For example, multiple actions are required to build and run foo_test. Corresponds to the JSON property toolInvocationId

Returns:

  • (String)

1243
1244
1245
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1243

def tool_invocation_id
  @tool_invocation_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1250
1251
1252
1253
1254
1255
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1250

def update!(**args)
  @action_id = args[:action_id] if args.key?(:action_id)
  @correlated_invocations_id = args[:correlated_invocations_id] if args.key?(:correlated_invocations_id)
  @tool_details = args[:tool_details] if args.key?(:tool_details)
  @tool_invocation_id = args[:tool_invocation_id] if args.key?(:tool_invocation_id)
end