Class GrpcDatasetServiceStub (2.4.0)

public class GrpcDatasetServiceStub extends DatasetServiceStub

gRPC stub implementation for the DatasetService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > DatasetServiceStub > GrpcDatasetServiceStub

Constructors

GrpcDatasetServiceStub(DatasetServiceStubSettings settings, ClientContext clientContext)

protected GrpcDatasetServiceStub(DatasetServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDatasetServiceStub, 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
NameDescription
settingsDatasetServiceStubSettings
clientContextClientContext

GrpcDatasetServiceStub(DatasetServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDatasetServiceStub(DatasetServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcDatasetServiceStub, 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
NameDescription
settingsDatasetServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

create(ClientContext clientContext)

public static final GrpcDatasetServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcDatasetServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDatasetServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcDatasetServiceStub
Exceptions
TypeDescription
IOException

create(DatasetServiceStubSettings settings)

public static final GrpcDatasetServiceStub create(DatasetServiceStubSettings settings)
Parameter
NameDescription
settingsDatasetServiceStubSettings
Returns
TypeDescription
GrpcDatasetServiceStub
Exceptions
TypeDescription
IOException

createDatasetCallable()

public UnaryCallable<CreateDatasetRequest,Operation> createDatasetCallable()
Returns
TypeDescription
UnaryCallable<CreateDatasetRequest,Operation>
Overrides

createDatasetOperationCallable()

public OperationCallable<CreateDatasetRequest,Dataset,CreateDatasetOperationMetadata> createDatasetOperationCallable()
Returns
TypeDescription
OperationCallable<CreateDatasetRequest,Dataset,CreateDatasetOperationMetadata>
Overrides

deleteDatasetCallable()

public UnaryCallable<DeleteDatasetRequest,Operation> deleteDatasetCallable()
Returns
TypeDescription
UnaryCallable<DeleteDatasetRequest,Operation>
Overrides

deleteDatasetOperationCallable()

public OperationCallable<DeleteDatasetRequest,Empty,DeleteOperationMetadata> deleteDatasetOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteDatasetRequest,Empty,DeleteOperationMetadata>
Overrides

exportDataCallable()

public UnaryCallable<ExportDataRequest,Operation> exportDataCallable()
Returns
TypeDescription
UnaryCallable<ExportDataRequest,Operation>
Overrides

exportDataOperationCallable()

public OperationCallable<ExportDataRequest,ExportDataResponse,ExportDataOperationMetadata> exportDataOperationCallable()
Returns
TypeDescription
OperationCallable<ExportDataRequest,ExportDataResponse,ExportDataOperationMetadata>
Overrides

getAnnotationSpecCallable()

public UnaryCallable<GetAnnotationSpecRequest,AnnotationSpec> getAnnotationSpecCallable()
Returns
TypeDescription
UnaryCallable<GetAnnotationSpecRequest,AnnotationSpec>
Overrides

getDatasetCallable()

public UnaryCallable<GetDatasetRequest,Dataset> getDatasetCallable()
Returns
TypeDescription
UnaryCallable<GetDatasetRequest,Dataset>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

importDataCallable()

public UnaryCallable<ImportDataRequest,Operation> importDataCallable()
Returns
TypeDescription
UnaryCallable<ImportDataRequest,Operation>
Overrides

importDataOperationCallable()

public OperationCallable<ImportDataRequest,ImportDataResponse,ImportDataOperationMetadata> importDataOperationCallable()
Returns
TypeDescription
OperationCallable<ImportDataRequest,ImportDataResponse,ImportDataOperationMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listAnnotationsCallable()

public UnaryCallable<ListAnnotationsRequest,ListAnnotationsResponse> listAnnotationsCallable()
Returns
TypeDescription
UnaryCallable<ListAnnotationsRequest,ListAnnotationsResponse>
Overrides

listAnnotationsPagedCallable()

public UnaryCallable<ListAnnotationsRequest,DatasetServiceClient.ListAnnotationsPagedResponse> listAnnotationsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListAnnotationsRequest,ListAnnotationsPagedResponse>
Overrides

listDataItemsCallable()

public UnaryCallable<ListDataItemsRequest,ListDataItemsResponse> listDataItemsCallable()
Returns
TypeDescription
UnaryCallable<ListDataItemsRequest,ListDataItemsResponse>
Overrides

listDataItemsPagedCallable()

public UnaryCallable<ListDataItemsRequest,DatasetServiceClient.ListDataItemsPagedResponse> listDataItemsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDataItemsRequest,ListDataItemsPagedResponse>
Overrides

listDatasetsCallable()

public UnaryCallable<ListDatasetsRequest,ListDatasetsResponse> listDatasetsCallable()
Returns
TypeDescription
UnaryCallable<ListDatasetsRequest,ListDatasetsResponse>
Overrides

listDatasetsPagedCallable()

public UnaryCallable<ListDatasetsRequest,DatasetServiceClient.ListDatasetsPagedResponse> listDatasetsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDatasetsRequest,ListDatasetsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDatasetCallable()

public UnaryCallable<UpdateDatasetRequest,Dataset> updateDatasetCallable()
Returns
TypeDescription
UnaryCallable<UpdateDatasetRequest,Dataset>
Overrides