> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# com.daml.ledger.api.v2.testing

> Package-level overview for com.daml.ledger.api.v2.testing.

[Back to overview](https://docs.canton.network/reference/protobuf/overview.md)

Protobuf Package

# com.daml.ledger.api.v2.testing

1 services, 2 endpoints, 3 messages

gRPC

Files
1

Services
1

Endpoints
2

Messages
3

Enums
0

## Source Files

community/ledger-api-proto/src/main/protobuf/com/daml/ledger/api/v2/testing/time\_service.proto

Last available source file in the compared descriptor snapshots.

Services
1

Messages
3

Enums
0

Source
[community/ledger-api-proto/src/main/protobuf/com/daml/ledger/api/v2/testing/time\_service.proto](https://github.com/digital-asset/canton/blob/v3.7.5/community/ledger-api-proto/src/main/protobuf/com/daml/ledger/api/v2/testing/time_service.proto)

## TimeService

Source file
[community/ledger-api-proto/src/main/protobuf/com/daml/ledger/api/v2/testing/time\_service.proto](https://github.com/digital-asset/canton/blob/v3.7.5/community/ledger-api-proto/src/main/protobuf/com/daml/ledger/api/v2/testing/time_service.proto)

Operations
2

[TimeService.GetTime](https://docs.canton.network/reference/protobuf/operations/com-daml-ledger-api-v2-testing/timeservice/gettime.md)

gRPC

rpc TimeService.GetTime(com.daml.ledger.api.v2.testing.GetTimeRequest) returns (com.daml.ledger.api.v2.testing.GetTimeResponse);

Request
com.daml.ledger.api.v2.testing.GetTimeRequest

Response
com.daml.ledger.api.v2.testing.GetTimeResponse

Client stream
No

Server stream
No

[TimeService.SetTime](https://docs.canton.network/reference/protobuf/operations/com-daml-ledger-api-v2-testing/timeservice/settime.md)

gRPC

rpc TimeService.SetTime(com.daml.ledger.api.v2.testing.SetTimeRequest) returns (google.protobuf.Empty);

Request
com.daml.ledger.api.v2.testing.SetTimeRequest

Response
google.protobuf.Empty

Client stream
No

Server stream
No

## Type Inventory

These are the last available package-level message and enum shapes. Endpoint pages use the definitions from the last release containing that endpoint.

### com.daml.ledger.api.v2.testing.GetTimeRequest

0 fields

### com.daml.ledger.api.v2.testing.GetTimeResponse

1 fields

`current_time`
Timestamp

### com.daml.ledger.api.v2.testing.SetTimeRequest

2 fields

`current_time`
Timestamp

`new_time`
Timestamp
