Class BlobsResource.GetTreeRequest
Fetch the entire directory tree rooted at a node. This request must be targeted at a Directory stored in the
ContentAddressableStorage (CAS). The server will enumerate the Directory
tree recursively and return every
node descended from the root. The GetTreeRequest.page_token parameter can be used to skip ahead in the
stream (e.g. when retrying a partially completed and aborted request), by setting it to a value taken from
GetTreeResponse.next_page_token of the last successfully processed GetTreeResponse). The exact traversal
order is unspecified and, unless retrieving subsequent pages from an earlier request, is not guaranteed to
be stable across multiple invocations of GetTree
. If part of the tree is missing from the CAS, the server
will return the portion present and omit the rest. Errors: * NOT_FOUND
: The requested tree root is not
present in the CAS.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.RemoteBuildExecution.v2
Assembly: Google.Apis.RemoteBuildExecution.v2.dll
Syntax
public class GetTreeRequest : RemoteBuildExecutionBaseServiceRequest<BuildBazelRemoteExecutionV2GetTreeResponse>, IClientServiceRequest<BuildBazelRemoteExecutionV2GetTreeResponse>, IClientServiceRequest
Constructors
GetTreeRequest(IClientService, String, String, Int64)
Constructs a new GetTree request.
Declaration
public GetTreeRequest(IClientService service, string instanceName, string hash, long sizeBytes)
Parameters
Type | Name | Description |
---|---|---|
Google.Apis.Services.IClientService | service | |
System.String | instanceName | |
System.String | hash | |
System.Int64 | sizeBytes |
Properties
Hash
The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long.
Declaration
[RequestParameter("hash", RequestParameterType.Path)]
public virtual string Hash { get; }
Property Value
Type | Description |
---|---|
System.String |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
InstanceName
The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.
Declaration
[RequestParameter("instanceName", RequestParameterType.Path)]
public virtual string InstanceName { get; }
Property Value
Type | Description |
---|---|
System.String |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
PageSize
A maximum page size to request. If present, the server will request no more than this many items. Regardless of whether a page size is specified, the server may place its own limit on the number of items to be returned and require the client to retrieve more items using a subsequent request.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
PageToken
A page token, which must be a value received in a previous GetTreeResponse. If present, the server will use that token as an offset, returning only that page and the ones that succeed it.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
SizeBytes
The size of the blob, in bytes.
Declaration
[RequestParameter("sizeBytes", RequestParameterType.Path)]
public virtual long SizeBytes { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
InitParameters()
Initializes GetTree parameter list.
Declaration
protected override void InitParameters()