Package io.dapr.v1
Class DaprGrpc.DaprStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<DaprGrpc.DaprStub>
io.dapr.v1.DaprGrpc.DaprStub
- Enclosing class:
- DaprGrpc
public static final class DaprGrpc.DaprStub
extends io.grpc.stub.AbstractAsyncStub<DaprGrpc.DaprStub>
Dapr service provides APIs to user application to access Dapr building blocks.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
-
Method Summary
Modifier and TypeMethodDescriptionprotected DaprGrpc.DaprStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
deleteBulkState(DaprProtos.DeleteBulkStateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a bulk of state items for a list of keysvoid
deleteState(DaprProtos.DeleteStateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the state for a specific key.void
executeActorStateTransaction(DaprProtos.ExecuteActorStateTransactionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Executes state transactions for a specified actorvoid
executeStateTransaction(DaprProtos.ExecuteStateTransactionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Executes transactions for a specified storevoid
getActorState(DaprProtos.GetActorStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetActorStateResponse> responseObserver)
Gets the state for a specific actor.void
getBulkSecret(DaprProtos.GetBulkSecretRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetBulkSecretResponse> responseObserver)
Gets a bulk of secretsvoid
getBulkState(DaprProtos.GetBulkStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetBulkStateResponse> responseObserver)
Gets a bulk of state items for a list of keysvoid
getConfigurationAlpha1(DaprProtos.GetConfigurationRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetConfigurationResponse> responseObserver)
GetConfiguration gets configuration from configuration store.void
getMetadata(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<DaprProtos.GetMetadataResponse> responseObserver)
Gets metadata of the sidecarvoid
getSecret(DaprProtos.GetSecretRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetSecretResponse> responseObserver)
Gets secrets from secret stores.void
getState(DaprProtos.GetStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetStateResponse> responseObserver)
Gets the state for a specific key.void
invokeActor(DaprProtos.InvokeActorRequest request, io.grpc.stub.StreamObserver<DaprProtos.InvokeActorResponse> responseObserver)
InvokeActor calls a method on an actor.void
invokeBinding(DaprProtos.InvokeBindingRequest request, io.grpc.stub.StreamObserver<DaprProtos.InvokeBindingResponse> responseObserver)
Invokes binding data to specific output bindingsvoid
invokeService(DaprProtos.InvokeServiceRequest request, io.grpc.stub.StreamObserver<CommonProtos.InvokeResponse> responseObserver)
Invokes a method on a remote Dapr app.void
publishEvent(DaprProtos.PublishEventRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Publishes events to the specific topic.void
queryStateAlpha1(DaprProtos.QueryStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.QueryStateResponse> responseObserver)
Queries the state.void
registerActorReminder(DaprProtos.RegisterActorReminderRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Register an actor reminder.void
registerActorTimer(DaprProtos.RegisterActorTimerRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Register an actor timer.void
renameActorReminder(DaprProtos.RenameActorReminderRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Rename an actor reminder.void
saveState(DaprProtos.SaveStateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Saves the state for a specific key.void
setMetadata(DaprProtos.SetMetadataRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Sets value in extended metadata of the sidecarvoid
shutdown(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Shutdown the sidecarvoid
subscribeConfigurationAlpha1(DaprProtos.SubscribeConfigurationRequest request, io.grpc.stub.StreamObserver<DaprProtos.SubscribeConfigurationResponse> responseObserver)
SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc streamvoid
tryLockAlpha1(DaprProtos.TryLockRequest request, io.grpc.stub.StreamObserver<DaprProtos.TryLockResponse> responseObserver)
TryLockAlpha1 tries to get a lock with an expiry.void
unlockAlpha1(DaprProtos.UnlockRequest request, io.grpc.stub.StreamObserver<DaprProtos.UnlockResponse> responseObserver)
UnlockAlpha1 unlocks a lock.void
unregisterActorReminder(DaprProtos.UnregisterActorReminderRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Unregister an actor reminder.void
unregisterActorTimer(DaprProtos.UnregisterActorTimerRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Unregister an actor timer.void
unsubscribeConfigurationAlpha1(DaprProtos.UnsubscribeConfigurationRequest request, io.grpc.stub.StreamObserver<DaprProtos.UnsubscribeConfigurationResponse> responseObserver)
UnSubscribeConfiguration unsubscribe the subscription of configurationMethods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Method Details
-
build
- Specified by:
build
in classio.grpc.stub.AbstractStub<DaprGrpc.DaprStub>
-
invokeService
public void invokeService(DaprProtos.InvokeServiceRequest request, io.grpc.stub.StreamObserver<CommonProtos.InvokeResponse> responseObserver)Invokes a method on a remote Dapr app.
-
getState
public void getState(DaprProtos.GetStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetStateResponse> responseObserver)Gets the state for a specific key.
-
getBulkState
public void getBulkState(DaprProtos.GetBulkStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetBulkStateResponse> responseObserver)Gets a bulk of state items for a list of keys
-
saveState
public void saveState(DaprProtos.SaveStateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Saves the state for a specific key.
-
queryStateAlpha1
public void queryStateAlpha1(DaprProtos.QueryStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.QueryStateResponse> responseObserver)Queries the state.
-
deleteState
public void deleteState(DaprProtos.DeleteStateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Deletes the state for a specific key.
-
deleteBulkState
public void deleteBulkState(DaprProtos.DeleteBulkStateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Deletes a bulk of state items for a list of keys
-
executeStateTransaction
public void executeStateTransaction(DaprProtos.ExecuteStateTransactionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Executes transactions for a specified store
-
publishEvent
public void publishEvent(DaprProtos.PublishEventRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Publishes events to the specific topic.
-
invokeBinding
public void invokeBinding(DaprProtos.InvokeBindingRequest request, io.grpc.stub.StreamObserver<DaprProtos.InvokeBindingResponse> responseObserver)Invokes binding data to specific output bindings
-
getSecret
public void getSecret(DaprProtos.GetSecretRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetSecretResponse> responseObserver)Gets secrets from secret stores.
-
getBulkSecret
public void getBulkSecret(DaprProtos.GetBulkSecretRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetBulkSecretResponse> responseObserver)Gets a bulk of secrets
-
registerActorTimer
public void registerActorTimer(DaprProtos.RegisterActorTimerRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Register an actor timer.
-
unregisterActorTimer
public void unregisterActorTimer(DaprProtos.UnregisterActorTimerRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Unregister an actor timer.
-
registerActorReminder
public void registerActorReminder(DaprProtos.RegisterActorReminderRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Register an actor reminder.
-
unregisterActorReminder
public void unregisterActorReminder(DaprProtos.UnregisterActorReminderRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Unregister an actor reminder.
-
renameActorReminder
public void renameActorReminder(DaprProtos.RenameActorReminderRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Rename an actor reminder.
-
getActorState
public void getActorState(DaprProtos.GetActorStateRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetActorStateResponse> responseObserver)Gets the state for a specific actor.
-
executeActorStateTransaction
public void executeActorStateTransaction(DaprProtos.ExecuteActorStateTransactionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Executes state transactions for a specified actor
-
invokeActor
public void invokeActor(DaprProtos.InvokeActorRequest request, io.grpc.stub.StreamObserver<DaprProtos.InvokeActorResponse> responseObserver)InvokeActor calls a method on an actor.
-
getConfigurationAlpha1
public void getConfigurationAlpha1(DaprProtos.GetConfigurationRequest request, io.grpc.stub.StreamObserver<DaprProtos.GetConfigurationResponse> responseObserver)GetConfiguration gets configuration from configuration store.
-
subscribeConfigurationAlpha1
public void subscribeConfigurationAlpha1(DaprProtos.SubscribeConfigurationRequest request, io.grpc.stub.StreamObserver<DaprProtos.SubscribeConfigurationResponse> responseObserver)SubscribeConfiguration gets configuration from configuration store and subscribe the updates event by grpc stream
-
unsubscribeConfigurationAlpha1
public void unsubscribeConfigurationAlpha1(DaprProtos.UnsubscribeConfigurationRequest request, io.grpc.stub.StreamObserver<DaprProtos.UnsubscribeConfigurationResponse> responseObserver)UnSubscribeConfiguration unsubscribe the subscription of configuration
-
tryLockAlpha1
public void tryLockAlpha1(DaprProtos.TryLockRequest request, io.grpc.stub.StreamObserver<DaprProtos.TryLockResponse> responseObserver)TryLockAlpha1 tries to get a lock with an expiry.
-
unlockAlpha1
public void unlockAlpha1(DaprProtos.UnlockRequest request, io.grpc.stub.StreamObserver<DaprProtos.UnlockResponse> responseObserver)UnlockAlpha1 unlocks a lock.
-
getMetadata
public void getMetadata(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<DaprProtos.GetMetadataResponse> responseObserver)Gets metadata of the sidecar
-
setMetadata
public void setMetadata(DaprProtos.SetMetadataRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Sets value in extended metadata of the sidecar
-
shutdown
public void shutdown(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Shutdown the sidecar
-