Class VersionsGrpc.VersionsStub

  • Enclosing class:
    VersionsGrpc

    public static final class VersionsGrpc.VersionsStub
    extends io.grpc.stub.AbstractAsyncStub<VersionsGrpc.VersionsStub>
    A stub to allow clients to do asynchronous rpc calls to service Versions.
     Service for managing [Versions][google.cloud.dialogflow.cx.v3.Version].
     
    • 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected VersionsGrpc.VersionsStub build​(io.grpc.Channel channel, io.grpc.CallOptions callOptions)  
      void compareVersions​(CompareVersionsRequest request, io.grpc.stub.StreamObserver<CompareVersionsResponse> responseObserver)
      Compares the specified base version with target version.
      void createVersion​(CreateVersionRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
      Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
      void deleteVersion​(DeleteVersionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
      Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version].
      void getVersion​(GetVersionRequest request, io.grpc.stub.StreamObserver<Version> responseObserver)
      Retrieves the specified [Version][google.cloud.dialogflow.cx.v3.Version].
      void listVersions​(ListVersionsRequest request, io.grpc.stub.StreamObserver<ListVersionsResponse> responseObserver)
      Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
      void loadVersion​(LoadVersionRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
      Loads resources in the specified version to the draft flow.
      void updateVersion​(UpdateVersionRequest request, io.grpc.stub.StreamObserver<Version> responseObserver)
      Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version].
      • Methods 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 Detail

      • listVersions

        public void listVersions​(ListVersionsRequest request,
                                 io.grpc.stub.StreamObserver<ListVersionsResponse> responseObserver)
         Returns the list of all versions in the specified
         [Flow][google.cloud.dialogflow.cx.v3.Flow].
         
      • getVersion

        public void getVersion​(GetVersionRequest request,
                               io.grpc.stub.StreamObserver<Version> responseObserver)
         Retrieves the specified [Version][google.cloud.dialogflow.cx.v3.Version].
         
      • createVersion

        public void createVersion​(CreateVersionRequest request,
                                  io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
         Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified
         [Flow][google.cloud.dialogflow.cx.v3.Flow].
         This method is a [long-running
         operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
         The returned `Operation` type has the following method-specific fields:
         - `metadata`:
         [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
         - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]
         
      • updateVersion

        public void updateVersion​(UpdateVersionRequest request,
                                  io.grpc.stub.StreamObserver<Version> responseObserver)
         Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version].
         
      • deleteVersion

        public void deleteVersion​(DeleteVersionRequest request,
                                  io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
         Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version].
         
      • loadVersion

        public void loadVersion​(LoadVersionRequest request,
                                io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
         Loads resources in the specified version to the draft flow.
         This method is a [long-running
         operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
         The returned `Operation` type has the following method-specific fields:
         - `metadata`: An empty [Struct
           message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
         - `response`: An [Empty
           message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)