Class GrpcVersionsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.cx.v3.stub.VersionsStub
-
- com.google.cloud.dialogflow.cx.v3.stub.GrpcVersionsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcVersionsStub extends VersionsStub
gRPC stub implementation for the Versions service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcVersionsStub(VersionsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcVersionsStub, using the given settings.protectedGrpcVersionsStub(VersionsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcVersionsStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()com.google.api.gax.rpc.UnaryCallable<CompareVersionsRequest,CompareVersionsResponse>compareVersionsCallable()static GrpcVersionsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcVersionsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcVersionsStubcreate(VersionsStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateVersionRequest,com.google.longrunning.Operation>createVersionCallable()com.google.api.gax.rpc.OperationCallable<CreateVersionRequest,Version,CreateVersionOperationMetadata>createVersionOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteVersionRequest,com.google.protobuf.Empty>deleteVersionCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetVersionRequest,Version>getVersionCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>listLocationsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,VersionsClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ListVersionsResponse>listVersionsCallable()com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,VersionsClient.ListVersionsPagedResponse>listVersionsPagedCallable()com.google.api.gax.rpc.UnaryCallable<LoadVersionRequest,com.google.longrunning.Operation>loadVersionCallable()com.google.api.gax.rpc.OperationCallable<LoadVersionRequest,com.google.protobuf.Empty,com.google.protobuf.Struct>loadVersionOperationCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<UpdateVersionRequest,Version>updateVersionCallable()-
Methods inherited from class com.google.cloud.dialogflow.cx.v3.stub.VersionsStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcVersionsStub
protected GrpcVersionsStub(VersionsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcVersionsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcVersionsStub
protected GrpcVersionsStub(VersionsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcVersionsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcVersionsStub create(VersionsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcVersionsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcVersionsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classVersionsStub
-
listVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ListVersionsResponse> listVersionsCallable()
- Overrides:
listVersionsCallablein classVersionsStub
-
listVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,VersionsClient.ListVersionsPagedResponse> listVersionsPagedCallable()
- Overrides:
listVersionsPagedCallablein classVersionsStub
-
getVersionCallable
public com.google.api.gax.rpc.UnaryCallable<GetVersionRequest,Version> getVersionCallable()
- Overrides:
getVersionCallablein classVersionsStub
-
createVersionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateVersionRequest,com.google.longrunning.Operation> createVersionCallable()
- Overrides:
createVersionCallablein classVersionsStub
-
createVersionOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateVersionRequest,Version,CreateVersionOperationMetadata> createVersionOperationCallable()
- Overrides:
createVersionOperationCallablein classVersionsStub
-
updateVersionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateVersionRequest,Version> updateVersionCallable()
- Overrides:
updateVersionCallablein classVersionsStub
-
deleteVersionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteVersionRequest,com.google.protobuf.Empty> deleteVersionCallable()
- Overrides:
deleteVersionCallablein classVersionsStub
-
loadVersionCallable
public com.google.api.gax.rpc.UnaryCallable<LoadVersionRequest,com.google.longrunning.Operation> loadVersionCallable()
- Overrides:
loadVersionCallablein classVersionsStub
-
loadVersionOperationCallable
public com.google.api.gax.rpc.OperationCallable<LoadVersionRequest,com.google.protobuf.Empty,com.google.protobuf.Struct> loadVersionOperationCallable()
- Overrides:
loadVersionOperationCallablein classVersionsStub
-
compareVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<CompareVersionsRequest,CompareVersionsResponse> compareVersionsCallable()
- Overrides:
compareVersionsCallablein classVersionsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classVersionsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,VersionsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classVersionsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classVersionsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classVersionsStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-