Class VersionsGrpc.VersionsBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<VersionsGrpc.VersionsBlockingV2Stub>
com.google.cloud.dialogflow.v2.VersionsGrpc.VersionsBlockingV2Stub
Enclosing class:
VersionsGrpc

public static final class VersionsGrpc.VersionsBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<VersionsGrpc.VersionsBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service Versions.
 Service for managing [Versions][google.cloud.dialogflow.v2.Version].
 
  • Method Details

    • build

      protected VersionsGrpc.VersionsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<VersionsGrpc.VersionsBlockingV2Stub>
    • listVersions

      public ListVersionsResponse listVersions(ListVersionsRequest request) throws io.grpc.StatusException
       Returns the list of all versions of the specified agent.
       
      Throws:
      io.grpc.StatusException
    • getVersion

      public Version getVersion(GetVersionRequest request) throws io.grpc.StatusException
       Retrieves the specified agent version.
       
      Throws:
      io.grpc.StatusException
    • createVersion

      public Version createVersion(CreateVersionRequest request) throws io.grpc.StatusException
       Creates an agent version.
       The new version points to the agent instance in the "default" environment.
       
      Throws:
      io.grpc.StatusException
    • updateVersion

      public Version updateVersion(UpdateVersionRequest request) throws io.grpc.StatusException
       Updates the specified agent version.
       Note that this method does not allow you to update the state of the agent
       the given version points to. It allows you to update only mutable
       properties of the version resource.
       
      Throws:
      io.grpc.StatusException
    • deleteVersion

      public com.google.protobuf.Empty deleteVersion(DeleteVersionRequest request) throws io.grpc.StatusException
       Delete the specified agent version.
       
      Throws:
      io.grpc.StatusException