Package com.google.cloud.retail.v2.stub
Class HttpJsonModelServiceStub
- java.lang.Object
-
- com.google.cloud.retail.v2.stub.ModelServiceStub
-
- com.google.cloud.retail.v2.stub.HttpJsonModelServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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 protectedHttpJsonModelServiceStub(ModelServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonModelServiceStub, using the given settings.protectedHttpJsonModelServiceStub(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 booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonModelServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonModelServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonModelServiceStubcreate(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.HttpJsonOperationsStubgetHttpJsonOperationsStub()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<GetModelRequest,Model>getModelCallable()booleanisShutdown()booleanisTerminated()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()voidshutdown()voidshutdownNow()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.v2.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:
getHttpJsonOperationsStubin classModelServiceStub
-
createModelCallable
public com.google.api.gax.rpc.UnaryCallable<CreateModelRequest,com.google.longrunning.Operation> createModelCallable()
- Overrides:
createModelCallablein classModelServiceStub
-
createModelOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateModelRequest,Model,CreateModelMetadata> createModelOperationCallable()
- Overrides:
createModelOperationCallablein classModelServiceStub
-
getModelCallable
public com.google.api.gax.rpc.UnaryCallable<GetModelRequest,Model> getModelCallable()
- Overrides:
getModelCallablein classModelServiceStub
-
pauseModelCallable
public com.google.api.gax.rpc.UnaryCallable<PauseModelRequest,Model> pauseModelCallable()
- Overrides:
pauseModelCallablein classModelServiceStub
-
resumeModelCallable
public com.google.api.gax.rpc.UnaryCallable<ResumeModelRequest,Model> resumeModelCallable()
- Overrides:
resumeModelCallablein classModelServiceStub
-
deleteModelCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteModelRequest,com.google.protobuf.Empty> deleteModelCallable()
- Overrides:
deleteModelCallablein classModelServiceStub
-
listModelsCallable
public com.google.api.gax.rpc.UnaryCallable<ListModelsRequest,ListModelsResponse> listModelsCallable()
- Overrides:
listModelsCallablein classModelServiceStub
-
listModelsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListModelsRequest,ModelServiceClient.ListModelsPagedResponse> listModelsPagedCallable()
- Overrides:
listModelsPagedCallablein classModelServiceStub
-
updateModelCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateModelRequest,Model> updateModelCallable()
- Overrides:
updateModelCallablein classModelServiceStub
-
tuneModelCallable
public com.google.api.gax.rpc.UnaryCallable<TuneModelRequest,com.google.longrunning.Operation> tuneModelCallable()
- Overrides:
tuneModelCallablein classModelServiceStub
-
tuneModelOperationCallable
public com.google.api.gax.rpc.OperationCallable<TuneModelRequest,TuneModelResponse,TuneModelMetadata> tuneModelOperationCallable()
- Overrides:
tuneModelOperationCallablein classModelServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-