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.
 
  • Method Details

    • build

      protected TwinAPIGrpc.TwinAPIStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.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.