Class GrpcFlowsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.cx.v3.stub.FlowsStub
-
- com.google.cloud.dialogflow.cx.v3.stub.GrpcFlowsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@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 protected
GrpcFlowsStub(FlowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcFlowsStub, using the given settings.protected
GrpcFlowsStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcFlowsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcFlowsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcFlowsStub
create(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.GrpcOperationsStub
getOperationsStub()
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()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
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.v3.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:
getOperationsStub
in classFlowsStub
-
createFlowCallable
public com.google.api.gax.rpc.UnaryCallable<CreateFlowRequest,Flow> createFlowCallable()
- Overrides:
createFlowCallable
in classFlowsStub
-
deleteFlowCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteFlowRequest,com.google.protobuf.Empty> deleteFlowCallable()
- Overrides:
deleteFlowCallable
in classFlowsStub
-
listFlowsCallable
public com.google.api.gax.rpc.UnaryCallable<ListFlowsRequest,ListFlowsResponse> listFlowsCallable()
- Overrides:
listFlowsCallable
in classFlowsStub
-
listFlowsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFlowsRequest,FlowsClient.ListFlowsPagedResponse> listFlowsPagedCallable()
- Overrides:
listFlowsPagedCallable
in classFlowsStub
-
getFlowCallable
public com.google.api.gax.rpc.UnaryCallable<GetFlowRequest,Flow> getFlowCallable()
- Overrides:
getFlowCallable
in classFlowsStub
-
updateFlowCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateFlowRequest,Flow> updateFlowCallable()
- Overrides:
updateFlowCallable
in classFlowsStub
-
trainFlowCallable
public com.google.api.gax.rpc.UnaryCallable<TrainFlowRequest,com.google.longrunning.Operation> trainFlowCallable()
- Overrides:
trainFlowCallable
in classFlowsStub
-
trainFlowOperationCallable
public com.google.api.gax.rpc.OperationCallable<TrainFlowRequest,com.google.protobuf.Empty,com.google.protobuf.Struct> trainFlowOperationCallable()
- Overrides:
trainFlowOperationCallable
in classFlowsStub
-
validateFlowCallable
public com.google.api.gax.rpc.UnaryCallable<ValidateFlowRequest,FlowValidationResult> validateFlowCallable()
- Overrides:
validateFlowCallable
in classFlowsStub
-
getFlowValidationResultCallable
public com.google.api.gax.rpc.UnaryCallable<GetFlowValidationResultRequest,FlowValidationResult> getFlowValidationResultCallable()
- Overrides:
getFlowValidationResultCallable
in classFlowsStub
-
importFlowCallable
public com.google.api.gax.rpc.UnaryCallable<ImportFlowRequest,com.google.longrunning.Operation> importFlowCallable()
- Overrides:
importFlowCallable
in classFlowsStub
-
importFlowOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportFlowRequest,ImportFlowResponse,com.google.protobuf.Struct> importFlowOperationCallable()
- Overrides:
importFlowOperationCallable
in classFlowsStub
-
exportFlowCallable
public com.google.api.gax.rpc.UnaryCallable<ExportFlowRequest,com.google.longrunning.Operation> exportFlowCallable()
- Overrides:
exportFlowCallable
in classFlowsStub
-
exportFlowOperationCallable
public com.google.api.gax.rpc.OperationCallable<ExportFlowRequest,ExportFlowResponse,com.google.protobuf.Struct> exportFlowOperationCallable()
- Overrides:
exportFlowOperationCallable
in classFlowsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classFlowsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,FlowsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classFlowsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classFlowsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-