Class GrpcExperimentsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.cx.v3.stub.ExperimentsStub
-
- com.google.cloud.dialogflow.cx.v3.stub.GrpcExperimentsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcExperimentsStub extends ExperimentsStub
gRPC stub implementation for the Experiments service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcExperimentsStub(ExperimentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcExperimentsStub, using the given settings.protected
GrpcExperimentsStub(ExperimentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcExperimentsStub, 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 GrpcExperimentsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcExperimentsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcExperimentsStub
create(ExperimentsStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateExperimentRequest,Experiment>
createExperimentCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteExperimentRequest,com.google.protobuf.Empty>
deleteExperimentCallable()
com.google.api.gax.rpc.UnaryCallable<GetExperimentRequest,Experiment>
getExperimentCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListExperimentsRequest,ListExperimentsResponse>
listExperimentsCallable()
com.google.api.gax.rpc.UnaryCallable<ListExperimentsRequest,ExperimentsClient.ListExperimentsPagedResponse>
listExperimentsPagedCallable()
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,ExperimentsClient.ListLocationsPagedResponse>
listLocationsPagedCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<StartExperimentRequest,Experiment>
startExperimentCallable()
com.google.api.gax.rpc.UnaryCallable<StopExperimentRequest,Experiment>
stopExperimentCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateExperimentRequest,Experiment>
updateExperimentCallable()
-
-
-
Constructor Detail
-
GrpcExperimentsStub
protected GrpcExperimentsStub(ExperimentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcExperimentsStub, 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
-
GrpcExperimentsStub
protected GrpcExperimentsStub(ExperimentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcExperimentsStub, 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 GrpcExperimentsStub create(ExperimentsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcExperimentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcExperimentsStub 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()
-
listExperimentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListExperimentsRequest,ListExperimentsResponse> listExperimentsCallable()
- Overrides:
listExperimentsCallable
in classExperimentsStub
-
listExperimentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListExperimentsRequest,ExperimentsClient.ListExperimentsPagedResponse> listExperimentsPagedCallable()
- Overrides:
listExperimentsPagedCallable
in classExperimentsStub
-
getExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<GetExperimentRequest,Experiment> getExperimentCallable()
- Overrides:
getExperimentCallable
in classExperimentsStub
-
createExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateExperimentRequest,Experiment> createExperimentCallable()
- Overrides:
createExperimentCallable
in classExperimentsStub
-
updateExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateExperimentRequest,Experiment> updateExperimentCallable()
- Overrides:
updateExperimentCallable
in classExperimentsStub
-
deleteExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteExperimentRequest,com.google.protobuf.Empty> deleteExperimentCallable()
- Overrides:
deleteExperimentCallable
in classExperimentsStub
-
startExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<StartExperimentRequest,Experiment> startExperimentCallable()
- Overrides:
startExperimentCallable
in classExperimentsStub
-
stopExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<StopExperimentRequest,Experiment> stopExperimentCallable()
- Overrides:
stopExperimentCallable
in classExperimentsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classExperimentsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ExperimentsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classExperimentsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classExperimentsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classExperimentsStub
-
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
-
-