Class HttpJsonModelServiceStub
- java.lang.Object
-
- com.google.cloud.retail.v2alpha.stub.ModelServiceStub
-
- com.google.cloud.retail.v2alpha.stub.HttpJsonModelServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonModelServiceStub extends ModelServiceStub
REST stub implementation for the ModelService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonModelServiceStub(ModelServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonModelServiceStub, using the given settings.protected
HttpJsonModelServiceStub(ModelServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonModelServiceStub, 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 HttpJsonModelServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonModelServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonModelServiceStub
create(ModelServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateModelRequest,com.google.longrunning.Operation>
createModelCallable()
com.google.api.gax.rpc.OperationCallable<CreateModelRequest,Model,CreateModelMetadata>
createModelOperationCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteModelRequest,com.google.protobuf.Empty>
deleteModelCallable()
com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
com.google.api.gax.rpc.UnaryCallable<GetModelRequest,Model>
getModelCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListModelsRequest,ListModelsResponse>
listModelsCallable()
com.google.api.gax.rpc.UnaryCallable<ListModelsRequest,ModelServiceClient.ListModelsPagedResponse>
listModelsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<PauseModelRequest,Model>
pauseModelCallable()
com.google.api.gax.rpc.UnaryCallable<ResumeModelRequest,Model>
resumeModelCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<TuneModelRequest,com.google.longrunning.Operation>
tuneModelCallable()
com.google.api.gax.rpc.OperationCallable<TuneModelRequest,TuneModelResponse,TuneModelMetadata>
tuneModelOperationCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateModelRequest,Model>
updateModelCallable()
-
Methods inherited from class com.google.cloud.retail.v2alpha.stub.ModelServiceStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonModelServiceStub
protected HttpJsonModelServiceStub(ModelServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonModelServiceStub, 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
-
HttpJsonModelServiceStub
protected HttpJsonModelServiceStub(ModelServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonModelServiceStub, 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 HttpJsonModelServiceStub create(ModelServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonModelServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonModelServiceStub 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:
getHttpJsonOperationsStub
in classModelServiceStub
-
createModelCallable
public com.google.api.gax.rpc.UnaryCallable<CreateModelRequest,com.google.longrunning.Operation> createModelCallable()
- Overrides:
createModelCallable
in classModelServiceStub
-
createModelOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateModelRequest,Model,CreateModelMetadata> createModelOperationCallable()
- Overrides:
createModelOperationCallable
in classModelServiceStub
-
getModelCallable
public com.google.api.gax.rpc.UnaryCallable<GetModelRequest,Model> getModelCallable()
- Overrides:
getModelCallable
in classModelServiceStub
-
pauseModelCallable
public com.google.api.gax.rpc.UnaryCallable<PauseModelRequest,Model> pauseModelCallable()
- Overrides:
pauseModelCallable
in classModelServiceStub
-
resumeModelCallable
public com.google.api.gax.rpc.UnaryCallable<ResumeModelRequest,Model> resumeModelCallable()
- Overrides:
resumeModelCallable
in classModelServiceStub
-
deleteModelCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteModelRequest,com.google.protobuf.Empty> deleteModelCallable()
- Overrides:
deleteModelCallable
in classModelServiceStub
-
listModelsCallable
public com.google.api.gax.rpc.UnaryCallable<ListModelsRequest,ListModelsResponse> listModelsCallable()
- Overrides:
listModelsCallable
in classModelServiceStub
-
listModelsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListModelsRequest,ModelServiceClient.ListModelsPagedResponse> listModelsPagedCallable()
- Overrides:
listModelsPagedCallable
in classModelServiceStub
-
updateModelCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateModelRequest,Model> updateModelCallable()
- Overrides:
updateModelCallable
in classModelServiceStub
-
tuneModelCallable
public com.google.api.gax.rpc.UnaryCallable<TuneModelRequest,com.google.longrunning.Operation> tuneModelCallable()
- Overrides:
tuneModelCallable
in classModelServiceStub
-
tuneModelOperationCallable
public com.google.api.gax.rpc.OperationCallable<TuneModelRequest,TuneModelResponse,TuneModelMetadata> tuneModelOperationCallable()
- Overrides:
tuneModelOperationCallable
in classModelServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classModelServiceStub
-
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
-
-