Package com.google.cloud.dialogflow.v2
Class VersionsGrpc.VersionsStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<VersionsGrpc.VersionsStub>
com.google.cloud.dialogflow.v2.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.v2.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
Modifier and TypeMethodDescriptionprotected VersionsGrpc.VersionsStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateVersion(CreateVersionRequest request, io.grpc.stub.StreamObserver<Version> responseObserver) Creates an agent version.voiddeleteVersion(DeleteVersionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Delete the specified agent version.voidgetVersion(GetVersionRequest request, io.grpc.stub.StreamObserver<Version> responseObserver) Retrieves the specified agent version.voidlistVersions(ListVersionsRequest request, io.grpc.stub.StreamObserver<ListVersionsResponse> responseObserver) Returns the list of all versions of the specified agent.voidupdateVersion(UpdateVersionRequest request, io.grpc.stub.StreamObserver<Version> responseObserver) Updates the specified agent version.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
- Specified by:
buildin classio.grpc.stub.AbstractStub<VersionsGrpc.VersionsStub>
-
listVersions
public void listVersions(ListVersionsRequest request, io.grpc.stub.StreamObserver<ListVersionsResponse> responseObserver) Returns the list of all versions of the specified agent.
-
getVersion
public void getVersion(GetVersionRequest request, io.grpc.stub.StreamObserver<Version> responseObserver) Retrieves the specified agent version.
-
createVersion
public void createVersion(CreateVersionRequest request, io.grpc.stub.StreamObserver<Version> responseObserver) Creates an agent version. The new version points to the agent instance in the "default" environment.
-
updateVersion
public void updateVersion(UpdateVersionRequest request, io.grpc.stub.StreamObserver<Version> responseObserver) 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.
-
deleteVersion
public void deleteVersion(DeleteVersionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Delete the specified agent version.
-