Package com.iotics.api
Class TwinAPIGrpc.TwinAPIStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<TwinAPIGrpc.TwinAPIStub>
com.iotics.api.TwinAPIGrpc.TwinAPIStub
- Enclosing class:
- TwinAPIGrpc
public static final class TwinAPIGrpc.TwinAPIStub
extends io.grpc.stub.AbstractAsyncStub<TwinAPIGrpc.TwinAPIStub>
TwinAPI enables creation and management of Iotics twins. Services only affect local resources, unless stated otherwise.
-
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 TwinAPIGrpc.TwinAPIStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateTwin(CreateTwinRequest request, io.grpc.stub.StreamObserver<CreateTwinResponse> responseObserver) CreateTwin creates a twin.voiddeleteTwin(DeleteTwinRequest request, io.grpc.stub.StreamObserver<DeleteTwinResponse> responseObserver) DeleteTwin deletes a twin.voiddescribeTwin(DescribeTwinRequest request, io.grpc.stub.StreamObserver<DescribeTwinResponse> responseObserver) Describes a twin.voidlistAllTwins(ListAllTwinsRequest request, io.grpc.stub.StreamObserver<ListAllTwinsResponse> responseObserver) List all twins.voidupdateTwin(UpdateTwinRequest request, io.grpc.stub.StreamObserver<UpdateTwinResponse> responseObserver) UpdateTwin updates a twin (partial update).voidupsertTwin(UpsertTwinRequest request, io.grpc.stub.StreamObserver<UpsertTwinResponse> responseObserver) UpsertTwin creates or update a twin with its metadata + the twin feeds with their metadata.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods 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:
buildin classio.grpc.stub.AbstractStub<TwinAPIGrpc.TwinAPIStub>
-
createTwin
public void createTwin(CreateTwinRequest request, io.grpc.stub.StreamObserver<CreateTwinResponse> responseObserver) CreateTwin creates a twin.
-
upsertTwin
public void upsertTwin(UpsertTwinRequest request, io.grpc.stub.StreamObserver<UpsertTwinResponse> responseObserver) UpsertTwin creates or update a twin with its metadata + the twin feeds with their metadata. The full state is applied (ie. if the operation succeeds the state of the twin/feeds will be the one described in the payload)
-
deleteTwin
public void deleteTwin(DeleteTwinRequest request, io.grpc.stub.StreamObserver<DeleteTwinResponse> responseObserver) DeleteTwin deletes a twin.
-
updateTwin
public void updateTwin(UpdateTwinRequest request, io.grpc.stub.StreamObserver<UpdateTwinResponse> responseObserver) UpdateTwin updates a twin (partial update).
-
describeTwin
public void describeTwin(DescribeTwinRequest request, io.grpc.stub.StreamObserver<DescribeTwinResponse> responseObserver) Describes a twin. (local and remote)
-
listAllTwins
public void listAllTwins(ListAllTwinsRequest request, io.grpc.stub.StreamObserver<ListAllTwinsResponse> responseObserver) List all twins.
-