> ## Documentation Index
> Fetch the complete documentation index at: https://cantonfoundation-update-ref-tables.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# TimeServiceGrpc.TimeServiceStub

> A stub to allow clients to do asynchronous rpc calls to service TimeService. Optional service, exposed for testing static time scenarios.

## TimeServiceGrpc.TimeServiceStub

Upstream docs: [Open](https://javadoc.io/doc/com.daml/bindings-java/3.5.6/com/daml/ledger/api/v2/testing/TimeServiceGrpc.TimeServiceStub.html)

**Signature**

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
public static final class TimeServiceGrpc.TimeServiceStub extends io.grpc.stub.AbstractAsyncStub<TimeServiceGrpc.TimeServiceStub>
```

**Members**

| Docs                                                                                                                                                                                                                                         | Member                                                                                                 | Introduced | Deprecated | Removed |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ---------- | ---------- | ------- |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.5.6/com/daml/ledger/api/v2/testing/TimeServiceGrpc.TimeServiceStub.html#build%28io.grpc.Channel,io.grpc.CallOptions%29)                                                               | `build(Channel, CallOptions)`                                                                          | `3.5.6`    | -          | -       |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.5.6/com/daml/ledger/api/v2/testing/TimeServiceGrpc.TimeServiceStub.html#getTime%28com.daml.ledger.api.v2.testing.TimeServiceOuterClass.GetTimeRequest,io.grpc.stub.StreamObserver%29) | `getTime(TimeServiceOuterClass.GetTimeRequest, StreamObserver<TimeServiceOuterClass.GetTimeResponse>)` | `3.5.6`    | -          | -       |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.5.6/com/daml/ledger/api/v2/testing/TimeServiceGrpc.TimeServiceStub.html#setTime%28com.daml.ledger.api.v2.testing.TimeServiceOuterClass.SetTimeRequest,io.grpc.stub.StreamObserver%29) | `setTime(TimeServiceOuterClass.SetTimeRequest, StreamObserver<Empty>)`                                 | `3.5.6`    | -          | -       |
