Class GrpcFlowsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.cx.v3beta1.stub.FlowsStub
-
- com.google.cloud.dialogflow.cx.v3beta1.stub.GrpcFlowsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcFlowsStub extends FlowsStub
gRPC stub implementation for the Flows service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcFlowsStub(FlowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcFlowsStub, using the given settings.protectedGrpcFlowsStub(FlowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcFlowsStub, 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()static GrpcFlowsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcFlowsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcFlowsStubcreate(FlowsStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateFlowRequest,Flow>createFlowCallable()com.google.api.gax.rpc.UnaryCallable<DeleteFlowRequest,com.google.protobuf.Empty>deleteFlowCallable()com.google.api.gax.rpc.UnaryCallable<ExportFlowRequest,com.google.longrunning.Operation>exportFlowCallable()com.google.api.gax.rpc.OperationCallable<ExportFlowRequest,ExportFlowResponse,com.google.protobuf.Struct>exportFlowOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetFlowRequest,Flow>getFlowCallable()com.google.api.gax.rpc.UnaryCallable<GetFlowValidationResultRequest,FlowValidationResult>getFlowValidationResultCallable()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<ImportFlowRequest,com.google.longrunning.Operation>importFlowCallable()com.google.api.gax.rpc.OperationCallable<ImportFlowRequest,ImportFlowResponse,com.google.protobuf.Struct>importFlowOperationCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListFlowsRequest,ListFlowsResponse>listFlowsCallable()com.google.api.gax.rpc.UnaryCallable<ListFlowsRequest,FlowsClient.ListFlowsPagedResponse>listFlowsPagedCallable()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,FlowsClient.ListLocationsPagedResponse>listLocationsPagedCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<TrainFlowRequest,com.google.longrunning.Operation>trainFlowCallable()com.google.api.gax.rpc.OperationCallable<TrainFlowRequest,com.google.protobuf.Empty,com.google.protobuf.Struct>trainFlowOperationCallable()com.google.api.gax.rpc.UnaryCallable<UpdateFlowRequest,Flow>updateFlowCallable()com.google.api.gax.rpc.UnaryCallable<ValidateFlowRequest,FlowValidationResult>validateFlowCallable()-
Methods inherited from class com.google.cloud.dialogflow.cx.v3beta1.stub.FlowsStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcFlowsStub
protected GrpcFlowsStub(FlowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcFlowsStub, 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
-
GrpcFlowsStub
protected GrpcFlowsStub(FlowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcFlowsStub, 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 GrpcFlowsStub create(FlowsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcFlowsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcFlowsStub 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 classFlowsStub
-
createFlowCallable
public com.google.api.gax.rpc.UnaryCallable<CreateFlowRequest,Flow> createFlowCallable()
- Overrides:
createFlowCallablein classFlowsStub
-
deleteFlowCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteFlowRequest,com.google.protobuf.Empty> deleteFlowCallable()
- Overrides:
deleteFlowCallablein classFlowsStub
-
listFlowsCallable
public com.google.api.gax.rpc.UnaryCallable<ListFlowsRequest,ListFlowsResponse> listFlowsCallable()
- Overrides:
listFlowsCallablein classFlowsStub
-
listFlowsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFlowsRequest,FlowsClient.ListFlowsPagedResponse> listFlowsPagedCallable()
- Overrides:
listFlowsPagedCallablein classFlowsStub
-
getFlowCallable
public com.google.api.gax.rpc.UnaryCallable<GetFlowRequest,Flow> getFlowCallable()
- Overrides:
getFlowCallablein classFlowsStub
-
updateFlowCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateFlowRequest,Flow> updateFlowCallable()
- Overrides:
updateFlowCallablein classFlowsStub
-
trainFlowCallable
public com.google.api.gax.rpc.UnaryCallable<TrainFlowRequest,com.google.longrunning.Operation> trainFlowCallable()
- Overrides:
trainFlowCallablein classFlowsStub
-
trainFlowOperationCallable
public com.google.api.gax.rpc.OperationCallable<TrainFlowRequest,com.google.protobuf.Empty,com.google.protobuf.Struct> trainFlowOperationCallable()
- Overrides:
trainFlowOperationCallablein classFlowsStub
-
validateFlowCallable
public com.google.api.gax.rpc.UnaryCallable<ValidateFlowRequest,FlowValidationResult> validateFlowCallable()
- Overrides:
validateFlowCallablein classFlowsStub
-
getFlowValidationResultCallable
public com.google.api.gax.rpc.UnaryCallable<GetFlowValidationResultRequest,FlowValidationResult> getFlowValidationResultCallable()
- Overrides:
getFlowValidationResultCallablein classFlowsStub
-
importFlowCallable
public com.google.api.gax.rpc.UnaryCallable<ImportFlowRequest,com.google.longrunning.Operation> importFlowCallable()
- Overrides:
importFlowCallablein classFlowsStub
-
importFlowOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportFlowRequest,ImportFlowResponse,com.google.protobuf.Struct> importFlowOperationCallable()
- Overrides:
importFlowOperationCallablein classFlowsStub
-
exportFlowCallable
public com.google.api.gax.rpc.UnaryCallable<ExportFlowRequest,com.google.longrunning.Operation> exportFlowCallable()
- Overrides:
exportFlowCallablein classFlowsStub
-
exportFlowOperationCallable
public com.google.api.gax.rpc.OperationCallable<ExportFlowRequest,ExportFlowResponse,com.google.protobuf.Struct> exportFlowOperationCallable()
- Overrides:
exportFlowOperationCallablein classFlowsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classFlowsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,FlowsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classFlowsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classFlowsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classFlowsStub
-
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
-
-