2020import io .dapr .config .Properties ;
2121import io .dapr .exceptions .DaprException ;
2222import io .dapr .utils .DurationUtils ;
23+ import io .dapr .v1 .DaprActorsProtos ;
2324import io .dapr .v1 .DaprGrpc ;
24- import io .dapr .v1 .DaprProtos ;
2525import io .grpc .ManagedChannel ;
2626import io .grpc .stub .StreamObserver ;
2727import reactor .core .publisher .Mono ;
@@ -78,14 +78,14 @@ class DaprClientImpl implements DaprClient {
7878 */
7979 @ Override
8080 public Mono <byte []> getState (String actorType , String actorId , String keyName ) {
81- DaprProtos .GetActorStateRequest req =
82- DaprProtos .GetActorStateRequest .newBuilder ()
81+ DaprActorsProtos .GetActorStateRequest req =
82+ DaprActorsProtos .GetActorStateRequest .newBuilder ()
8383 .setActorType (actorType )
8484 .setActorId (actorId )
8585 .setKey (keyName )
8686 .build ();
8787
88- return Mono .<DaprProtos .GetActorStateResponse >create (it ->
88+ return Mono .<DaprActorsProtos .GetActorStateResponse >create (it ->
8989 client .getActorState (req , createStreamObserver (it ))).map (r -> r .getData ().toByteArray ());
9090 }
9191
@@ -97,13 +97,13 @@ public Mono<Void> saveStateTransactionally(
9797 String actorType ,
9898 String actorId ,
9999 List <ActorStateOperation > operations ) {
100- List <DaprProtos .TransactionalActorStateOperation > grpcOps = new ArrayList <>();
100+ List <DaprActorsProtos .TransactionalActorStateOperation > grpcOps = new ArrayList <>();
101101 for (ActorStateOperation op : operations ) {
102102 String operationType = op .getOperationType ();
103103 String key = op .getKey ();
104104 Object value = op .getValue ();
105- DaprProtos .TransactionalActorStateOperation .Builder opBuilder =
106- DaprProtos .TransactionalActorStateOperation .newBuilder ()
105+ DaprActorsProtos .TransactionalActorStateOperation .Builder opBuilder =
106+ DaprActorsProtos .TransactionalActorStateOperation .newBuilder ()
107107 .setOperationType (operationType )
108108 .setKey (key );
109109 if (value != null ) {
@@ -126,8 +126,8 @@ public Mono<Void> saveStateTransactionally(
126126 grpcOps .add (opBuilder .build ());
127127 }
128128
129- DaprProtos .ExecuteActorStateTransactionRequest req =
130- DaprProtos .ExecuteActorStateTransactionRequest .newBuilder ()
129+ DaprActorsProtos .ExecuteActorStateTransactionRequest req =
130+ DaprActorsProtos .ExecuteActorStateTransactionRequest .newBuilder ()
131131 .setActorType (actorType )
132132 .setActorId (actorId )
133133 .addAllOperations (grpcOps )
@@ -145,8 +145,8 @@ public Mono<Void> registerReminder(
145145 String actorId ,
146146 String reminderName ,
147147 ActorReminderParams reminderParams ) {
148- DaprProtos .RegisterActorReminderRequest req =
149- DaprProtos .RegisterActorReminderRequest .newBuilder ()
148+ DaprActorsProtos .RegisterActorReminderRequest req =
149+ DaprActorsProtos .RegisterActorReminderRequest .newBuilder ()
150150 .setActorType (actorType )
151151 .setActorId (actorId )
152152 .setName (reminderName )
@@ -162,8 +162,8 @@ public Mono<Void> registerReminder(
162162 */
163163 @ Override
164164 public Mono <Void > unregisterReminder (String actorType , String actorId , String reminderName ) {
165- DaprProtos .UnregisterActorReminderRequest req =
166- DaprProtos .UnregisterActorReminderRequest .newBuilder ()
165+ DaprActorsProtos .UnregisterActorReminderRequest req =
166+ DaprActorsProtos .UnregisterActorReminderRequest .newBuilder ()
167167 .setActorType (actorType )
168168 .setActorId (actorId )
169169 .setName (reminderName )
@@ -181,8 +181,8 @@ public Mono<Void> registerTimer(
181181 String actorId ,
182182 String timerName ,
183183 ActorTimerParams timerParams ) {
184- DaprProtos .RegisterActorTimerRequest req =
185- DaprProtos .RegisterActorTimerRequest .newBuilder ()
184+ DaprActorsProtos .RegisterActorTimerRequest req =
185+ DaprActorsProtos .RegisterActorTimerRequest .newBuilder ()
186186 .setActorType (actorType )
187187 .setActorId (actorId )
188188 .setName (timerName )
@@ -200,8 +200,8 @@ public Mono<Void> registerTimer(
200200 */
201201 @ Override
202202 public Mono <Void > unregisterTimer (String actorType , String actorId , String timerName ) {
203- DaprProtos .UnregisterActorTimerRequest req =
204- DaprProtos .UnregisterActorTimerRequest .newBuilder ()
203+ DaprActorsProtos .UnregisterActorTimerRequest req =
204+ DaprActorsProtos .UnregisterActorTimerRequest .newBuilder ()
205205 .setActorType (actorType )
206206 .setActorId (actorId )
207207 .setName (timerName )
0 commit comments