- 2.57.0 (latest)
- 2.56.0
- 2.55.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.5
- 2.6.2
- 2.5.1
- 2.4.3
- 2.3.1
- 2.2.1
- 2.1.9
public class GrpcDocumentServiceStub extends DocumentServiceStub
gRPC stub implementation for the DocumentService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcDocumentServiceStub create(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext | ClientContext |
Returns | |
---|---|
Type | Description |
GrpcDocumentServiceStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcDocumentServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext | ClientContext |
callableFactory | GrpcStubCallableFactory |
Returns | |
---|---|
Type | Description |
GrpcDocumentServiceStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(DocumentServiceStubSettings settings)
public static final GrpcDocumentServiceStub create(DocumentServiceStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings | DocumentServiceStubSettings |
Returns | |
---|---|
Type | Description |
GrpcDocumentServiceStub |
Exceptions | |
---|---|
Type | Description |
IOException |
Constructors
GrpcDocumentServiceStub(DocumentServiceStubSettings settings, ClientContext clientContext)
protected GrpcDocumentServiceStub(DocumentServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcDocumentServiceStub, 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.
Parameters | |
---|---|
Name | Description |
settings | DocumentServiceStubSettings |
clientContext | ClientContext |
GrpcDocumentServiceStub(DocumentServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcDocumentServiceStub(DocumentServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcDocumentServiceStub, 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.
Parameters | |
---|---|
Name | Description |
settings | DocumentServiceStubSettings |
clientContext | ClientContext |
callableFactory | GrpcStubCallableFactory |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration | long |
unit | TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
batchDeleteDocumentsCallable()
public UnaryCallable<BatchDeleteDocumentsRequest,Operation> batchDeleteDocumentsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<BatchDeleteDocumentsRequest,Operation> |
batchDeleteDocumentsOperationCallable()
public OperationCallable<BatchDeleteDocumentsRequest,BatchDeleteDocumentsResponse,BatchDeleteDocumentsMetadata> batchDeleteDocumentsOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<BatchDeleteDocumentsRequest,BatchDeleteDocumentsResponse,BatchDeleteDocumentsMetadata> |
close()
public final void close()
getDatasetSchemaCallable()
public UnaryCallable<GetDatasetSchemaRequest,DatasetSchema> getDatasetSchemaCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetDatasetSchemaRequest,DatasetSchema> |
getDocumentCallable()
public UnaryCallable<GetDocumentRequest,GetDocumentResponse> getDocumentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetDocumentRequest,GetDocumentResponse> |
getLocationCallable()
public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns | |
---|---|
Type | Description |
GrpcOperationsStub |
importDocumentsCallable()
public UnaryCallable<ImportDocumentsRequest,Operation> importDocumentsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ImportDocumentsRequest,Operation> |
importDocumentsOperationCallable()
public OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,ImportDocumentsMetadata> importDocumentsOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,ImportDocumentsMetadata> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listDocumentsCallable()
public UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> listDocumentsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> |
listDocumentsPagedCallable()
public UnaryCallable<ListDocumentsRequest,DocumentServiceClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDocumentsRequest,ListDocumentsPagedResponse> |
listLocationsCallable()
public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
listLocationsPagedCallable()
public UnaryCallable<ListLocationsRequest,DocumentServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
updateDatasetCallable()
public UnaryCallable<UpdateDatasetRequest,Operation> updateDatasetCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateDatasetRequest,Operation> |
updateDatasetOperationCallable()
public OperationCallable<UpdateDatasetRequest,Dataset,UpdateDatasetOperationMetadata> updateDatasetOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateDatasetRequest,Dataset,UpdateDatasetOperationMetadata> |
updateDatasetSchemaCallable()
public UnaryCallable<UpdateDatasetSchemaRequest,DatasetSchema> updateDatasetSchemaCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateDatasetSchemaRequest,DatasetSchema> |