Class HttpJsonFlowsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.cx.v3.stub.FlowsStub
-
- com.google.cloud.dialogflow.cx.v3.stub.HttpJsonFlowsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonFlowsStub extends FlowsStub
REST 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 protectedHttpJsonFlowsStub(FlowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonFlowsStub, using the given settings.protectedHttpJsonFlowsStub(FlowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonFlowsStub, 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 HttpJsonFlowsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonFlowsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonFlowsStubcreate(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.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()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.v3.stub.FlowsStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonFlowsStub
protected HttpJsonFlowsStub(FlowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonFlowsStub, 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
-
HttpJsonFlowsStub
protected HttpJsonFlowsStub(FlowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonFlowsStub, 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 HttpJsonFlowsStub create(FlowsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonFlowsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonFlowsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin 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
-
-