Class HttpJsonExperimentsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.cx.v3beta1.stub.ExperimentsStub
-
- com.google.cloud.dialogflow.cx.v3beta1.stub.HttpJsonExperimentsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonExperimentsStub extends ExperimentsStub
REST 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 protectedHttpJsonExperimentsStub(ExperimentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonExperimentsStub, using the given settings.protectedHttpJsonExperimentsStub(ExperimentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonExperimentsStub, 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 HttpJsonExperimentsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonExperimentsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonExperimentsStubcreate(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()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()booleanisShutdown()booleanisTerminated()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()voidshutdown()voidshutdownNow()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
-
HttpJsonExperimentsStub
protected HttpJsonExperimentsStub(ExperimentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonExperimentsStub, 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
-
HttpJsonExperimentsStub
protected HttpJsonExperimentsStub(ExperimentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonExperimentsStub, 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 HttpJsonExperimentsStub create(ExperimentsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonExperimentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonExperimentsStub 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()
-
listExperimentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListExperimentsRequest,ListExperimentsResponse> listExperimentsCallable()
- Overrides:
listExperimentsCallablein classExperimentsStub
-
listExperimentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListExperimentsRequest,ExperimentsClient.ListExperimentsPagedResponse> listExperimentsPagedCallable()
- Overrides:
listExperimentsPagedCallablein classExperimentsStub
-
getExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<GetExperimentRequest,Experiment> getExperimentCallable()
- Overrides:
getExperimentCallablein classExperimentsStub
-
createExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateExperimentRequest,Experiment> createExperimentCallable()
- Overrides:
createExperimentCallablein classExperimentsStub
-
updateExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateExperimentRequest,Experiment> updateExperimentCallable()
- Overrides:
updateExperimentCallablein classExperimentsStub
-
deleteExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteExperimentRequest,com.google.protobuf.Empty> deleteExperimentCallable()
- Overrides:
deleteExperimentCallablein classExperimentsStub
-
startExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<StartExperimentRequest,Experiment> startExperimentCallable()
- Overrides:
startExperimentCallablein classExperimentsStub
-
stopExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<StopExperimentRequest,Experiment> stopExperimentCallable()
- Overrides:
stopExperimentCallablein classExperimentsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classExperimentsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ExperimentsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classExperimentsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classExperimentsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-