# Uses of Class
io.dapr.utils.TypeRef

Packages that use TypeRef
Package | Description
--- | ---
io.dapr.actors.client |
io.dapr.actors.runtime |
io.dapr.client |
io.dapr.serializer |
io.dapr.utils |

- ## Uses of TypeRef in io.dapr.actors.client

  Methods in io.dapr.actors.client with parameters of type TypeRef
  Modifier and Type | Method | Description
  --- | --- | ---
  `<T> reactor.core.publisher.Mono<T>` | ActorProxy.`invokeActorMethod​(java.lang.String methodName, TypeRef<T> type)` | Invokes an Actor method on Dapr.
  `<T> reactor.core.publisher.Mono<T>` | ActorProxy.`invokeActorMethod​(java.lang.String methodName, java.lang.Object data, TypeRef<T> type)` | Invokes an Actor method on Dapr.

- ## Uses of TypeRef in io.dapr.actors.runtime

  Methods in io.dapr.actors.runtime that return TypeRef
  Modifier and Type | Method | Description
  --- | --- | ---
  `TypeRef<T>` | Remindable.`getStateType()` | Gets the type for state object.

  Methods in io.dapr.actors.runtime with parameters of type TypeRef
  Modifier and Type | Method | Description
  --- | --- | ---
  `<T> reactor.core.publisher.Mono<T>` | ActorStateManager.`get​(java.lang.String stateName, TypeRef<T> type)` | Fetches the most recent value for the given state, including cached value.

- ## Uses of TypeRef in io.dapr.client

  Methods in io.dapr.client with parameters of type TypeRef
  Modifier and Type | Method | Description
  --- | --- | ---
  `<T> T` | ObjectSerializer.`deserialize​(byte[] content, TypeRef<T> type)` | Deserializes the byte array into the original object.
  `<T> reactor.core.publisher.Mono<State<T>>` | DaprClient.`getState​(java.lang.String stateStoreName, State<T> state, TypeRef<T> type)` | Retrieve a State based on their key.
  `<T> reactor.core.publisher.Mono<State<T>>` | DaprClient.`getState​(java.lang.String stateStoreName, java.lang.String key, TypeRef<T> type)` | Retrieve a State based on their key.
  `<T> reactor.core.publisher.Mono<State<T>>` | DaprClient.`getState​(java.lang.String stateStoreName, java.lang.String key, java.lang.String etag, StateOptions options, TypeRef<T> type)` | Retrieve a State based on their key.
  `<T> reactor.core.publisher.Mono<State<T>>` | DaprClientGrpc.`getState​(java.lang.String stateStoreName, State<T> state, TypeRef<T> type)` | Retrieve a State based on their key.
  `<T> reactor.core.publisher.Mono<State<T>>` | DaprClientGrpc.`getState​(java.lang.String stateStoreName, java.lang.String key, TypeRef<T> type)` | Retrieve a State based on their key.
  `<T> reactor.core.publisher.Mono<State<T>>` | DaprClientGrpc.`getState​(java.lang.String stateStoreName, java.lang.String key, java.lang.String etag, StateOptions options, TypeRef<T> type)` | Retrieve a State based on their key.
  `<T> reactor.core.publisher.Mono<State<T>>` | DaprClientHttp.`getState​(java.lang.String stateStoreName, State<T> state, TypeRef<T> type)` | Retrieve a State based on their key.
  `<T> reactor.core.publisher.Mono<State<T>>` | DaprClientHttp.`getState​(java.lang.String stateStoreName, java.lang.String key, TypeRef<T> type)` | Retrieve a State based on their key.
  `<T> reactor.core.publisher.Mono<State<T>>` | DaprClientHttp.`getState​(java.lang.String stateStoreName, java.lang.String key, java.lang.String etag, StateOptions options, TypeRef<T> type)` | Retrieve a State based on their key.
  `<T> reactor.core.publisher.Mono<T>` | DaprClient.`invokeBinding​(java.lang.String name, java.lang.String operation, java.lang.Object data, TypeRef<T> type)` | Invokes a Binding operation.
  `<T> reactor.core.publisher.Mono<T>` | DaprClient.`invokeBinding​(java.lang.String name, java.lang.String operation, java.lang.Object data, java.util.Map<java.lang.String,​java.lang.String> metadata, TypeRef<T> type)` | Invokes a Binding operation.
  `<T> reactor.core.publisher.Mono<T>` | DaprClientGrpc.`invokeBinding​(java.lang.String name, java.lang.String operation, java.lang.Object data, TypeRef<T> type)` | Invokes a Binding operation.
  `<T> reactor.core.publisher.Mono<T>` | DaprClientGrpc.`invokeBinding​(java.lang.String name, java.lang.String operation, java.lang.Object data, java.util.Map<java.lang.String,​java.lang.String> metadata, TypeRef<T> type)` | Invokes a Binding operation.
  `<T> reactor.core.publisher.Mono<T>` | DaprClientHttp.`invokeBinding​(java.lang.String name, java.lang.String operation, java.lang.Object data, TypeRef<T> type)` | Invokes a Binding operation.
  `<T> reactor.core.publisher.Mono<T>` | DaprClientHttp.`invokeBinding​(java.lang.String name, java.lang.String operation, java.lang.Object data, java.util.Map<java.lang.String,​java.lang.String> metadata, TypeRef<T> type)` | Invokes a Binding operation.
  `<T> reactor.core.publisher.Mono<T>` | DaprClient.`invokeService​(java.lang.String appId, java.lang.String method, HttpExtension httpExtension, java.util.Map<java.lang.String,​java.lang.String> metadata, TypeRef<T> type)` | Invoke a service with all possible parameters, using serialization.
  `<T> reactor.core.publisher.Mono<T>` | DaprClient.`invokeService​(java.lang.String appId, java.lang.String method, java.lang.Object request, HttpExtension httpExtension, TypeRef<T> type)` | Invoke a service with all possible parameters, using serialization.
  `<T> reactor.core.publisher.Mono<T>` | DaprClient.`invokeService​(java.lang.String appId, java.lang.String method, java.lang.Object request, HttpExtension httpExtension, java.util.Map<java.lang.String,​java.lang.String> metadata, TypeRef<T> type)` | Invoke a service with all possible parameters, using serialization.
  `<T> reactor.core.publisher.Mono<T>` | DaprClientGrpc.`invokeService​(java.lang.String appId, java.lang.String method, HttpExtension httpExtension, java.util.Map<java.lang.String,​java.lang.String> metadata, TypeRef<T> type)` | Invoke a service with all possible parameters, using serialization.
  `<T> reactor.core.publisher.Mono<T>` | DaprClientGrpc.`invokeService​(java.lang.String appId, java.lang.String method, java.lang.Object request, HttpExtension httpExtension, TypeRef<T> type)` | Invoke a service with all possible parameters, using serialization.
  `<T> reactor.core.publisher.Mono<T>` | DaprClientGrpc.`invokeService​(java.lang.String appId, java.lang.String method, java.lang.Object request, HttpExtension httpExtension, java.util.Map<java.lang.String,​java.lang.String> metadata, TypeRef<T> type)` |
  `<T> reactor.core.publisher.Mono<T>` | DaprClientHttp.`invokeService​(java.lang.String appId, java.lang.String method, HttpExtension httpExtension, java.util.Map<java.lang.String,​java.lang.String> metadata, TypeRef<T> type)` | Invoke a service with all possible parameters, using serialization.
  `<T> reactor.core.publisher.Mono<T>` | DaprClientHttp.`invokeService​(java.lang.String appId, java.lang.String method, java.lang.Object request, HttpExtension httpExtension, TypeRef<T> type)` | Invoke a service with all possible parameters, using serialization.
  `<T> reactor.core.publisher.Mono<T>` | DaprClientHttp.`invokeService​(java.lang.String appId, java.lang.String method, java.lang.Object request, HttpExtension httpExtension, java.util.Map<java.lang.String,​java.lang.String> metadata, TypeRef<T> type)` | Invoke a service with all possible parameters, using serialization.

- ## Uses of TypeRef in io.dapr.serializer

  Methods in io.dapr.serializer with parameters of type TypeRef
  Modifier and Type | Method | Description
  --- | --- | ---
  `<T> T` | DaprObjectSerializer.`deserialize​(byte[] data, TypeRef<T> type)` | Deserializes the given byte[] into a object.
  `<T> T` | DefaultObjectSerializer.`deserialize​(byte[] data, TypeRef<T> type)` | Deserializes the byte array into the original object.

- ## Uses of TypeRef in io.dapr.utils

  Fields in io.dapr.utils declared as TypeRef
  Modifier and Type | Field | Description
  --- | --- | ---
  `static TypeRef<java.lang.Boolean>` | TypeRef.`BOOLEAN` |
  `static TypeRef<java.lang.Byte>` | TypeRef.`BYTE` |
  `static TypeRef<byte[]>` | TypeRef.`BYTE_ARRAY` |
  `static TypeRef<java.lang.Character>` | TypeRef.`CHAR` |
  `static TypeRef<java.lang.Double>` | TypeRef.`DOUBLE` |
  `static TypeRef<java.lang.Float>` | TypeRef.`FLOAT` |
  `static TypeRef<java.lang.Integer>` | TypeRef.`INT` |
  `static TypeRef<int[]>` | TypeRef.`INT_ARRAY` |
  `static TypeRef<java.lang.Long>` | TypeRef.`LONG` |
  `static TypeRef<java.lang.String>` | TypeRef.`STRING` |
  `static TypeRef<java.lang.String[]>` | TypeRef.`STRING_ARRAY` |
  `static TypeRef<java.lang.Void>` | TypeRef.`VOID` |

  Methods in io.dapr.utils that return TypeRef
  Modifier and Type | Method | Description
  --- | --- | ---
  `static <T> TypeRef<T>` | TypeRef.`get​(java.lang.Class<T> clazz)` | Creates a reference to a given class type.