Class HttpJsonDocumentServiceStub
- java.lang.Object
-
- com.google.cloud.discoveryengine.v1.stub.DocumentServiceStub
-
- com.google.cloud.discoveryengine.v1.stub.HttpJsonDocumentServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonDocumentServiceStub extends DocumentServiceStub
REST stub implementation for the DocumentService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonDocumentServiceStub, using the given settings.protected
HttpJsonDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonDocumentServiceStub, 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 HttpJsonDocumentServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonDocumentServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonDocumentServiceStub
create(DocumentServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateDocumentRequest,Document>
createDocumentCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteDocumentRequest,com.google.protobuf.Empty>
deleteDocumentCallable()
com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,Document>
getDocumentCallable()
com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
com.google.api.gax.rpc.UnaryCallable<ImportDocumentsRequest,com.google.longrunning.Operation>
importDocumentsCallable()
com.google.api.gax.rpc.OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,ImportDocumentsMetadata>
importDocumentsOperationCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,ListDocumentsResponse>
listDocumentsCallable()
com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,DocumentServiceClient.ListDocumentsPagedResponse>
listDocumentsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<PurgeDocumentsRequest,com.google.longrunning.Operation>
purgeDocumentsCallable()
com.google.api.gax.rpc.OperationCallable<PurgeDocumentsRequest,PurgeDocumentsResponse,PurgeDocumentsMetadata>
purgeDocumentsOperationCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<UpdateDocumentRequest,Document>
updateDocumentCallable()
-
Methods inherited from class com.google.cloud.discoveryengine.v1.stub.DocumentServiceStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonDocumentServiceStub
protected HttpJsonDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonDocumentServiceStub, 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
-
HttpJsonDocumentServiceStub
protected HttpJsonDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonDocumentServiceStub, 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 HttpJsonDocumentServiceStub create(DocumentServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonDocumentServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonDocumentServiceStub 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 classDocumentServiceStub
-
getDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,Document> getDocumentCallable()
- Overrides:
getDocumentCallable
in classDocumentServiceStub
-
listDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> listDocumentsCallable()
- Overrides:
listDocumentsCallable
in classDocumentServiceStub
-
listDocumentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,DocumentServiceClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
- Overrides:
listDocumentsPagedCallable
in classDocumentServiceStub
-
createDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateDocumentRequest,Document> createDocumentCallable()
- Overrides:
createDocumentCallable
in classDocumentServiceStub
-
updateDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDocumentRequest,Document> updateDocumentCallable()
- Overrides:
updateDocumentCallable
in classDocumentServiceStub
-
deleteDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDocumentRequest,com.google.protobuf.Empty> deleteDocumentCallable()
- Overrides:
deleteDocumentCallable
in classDocumentServiceStub
-
importDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportDocumentsRequest,com.google.longrunning.Operation> importDocumentsCallable()
- Overrides:
importDocumentsCallable
in classDocumentServiceStub
-
importDocumentsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,ImportDocumentsMetadata> importDocumentsOperationCallable()
- Overrides:
importDocumentsOperationCallable
in classDocumentServiceStub
-
purgeDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<PurgeDocumentsRequest,com.google.longrunning.Operation> purgeDocumentsCallable()
- Overrides:
purgeDocumentsCallable
in classDocumentServiceStub
-
purgeDocumentsOperationCallable
public com.google.api.gax.rpc.OperationCallable<PurgeDocumentsRequest,PurgeDocumentsResponse,PurgeDocumentsMetadata> purgeDocumentsOperationCallable()
- Overrides:
purgeDocumentsOperationCallable
in classDocumentServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classDocumentServiceStub
-
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
-
-