buildgrid.server.capabilities.service module

class buildgrid.server.capabilities.service.CapabilitiesService

Bases: CapabilitiesServicer, InstancedServicer[CapabilitiesInstance]

REGISTER_METHOD(server)
FULL_NAME: ClassVar[str] = 'build.bazel.remote.execution.v2.Capabilities'

The full name of the servicer, used to match instances to the servicer and configure reflection. This value should be declared on the class of any Servicer implementations.

property enabled: bool

By default, a servicer is disabled if there are no registered instances. If a servicer is not enabled, it will not be attached to the grpc.Server instance.

This property may be overriden if servicer enablement follows other rules.

add_cas_instance(name: str, instance: ContentAddressableStorageInstance) None
add_action_cache_instance(name: str, instance: ActionCache | ActionCacheABC) None
add_execution_instance(name: str, instance: ExecutionInstance) None
GetCapabilities(request: GetCapabilitiesRequest, context: ServicerContext) ServerCapabilities

Handles GetCapabilitiesRequest messages.

Parameters:
  • request (GetCapabilitiesRequest) – The incoming RPC request.

  • context (grpc.ServicerContext) – Context for the RPC call.