Class GrpcExportServiceStub (2.35.0)

public class GrpcExportServiceStub extends ExportServiceStub

gRPC stub implementation for the ExportService service API.

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

Inheritance

java.lang.Object > ExportServiceStub > GrpcExportServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ExportServiceStubSettings settings)

public static final GrpcExportServiceStub create(ExportServiceStubSettings settings)
Parameter
NameDescription
settingsExportServiceStubSettings
Returns
TypeDescription
GrpcExportServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcExportServiceStub(ExportServiceStubSettings settings, ClientContext clientContext)

protected GrpcExportServiceStub(ExportServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcExportServiceStub, 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
settingsExportServiceStubSettings
clientContextClientContext

GrpcExportServiceStub(ExportServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcExportServiceStub(ExportServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcExportServiceStub, 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
settingsExportServiceStubSettings
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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listProfilesCallable()

public UnaryCallable<ListProfilesRequest,ListProfilesResponse> listProfilesCallable()
Returns
TypeDescription
UnaryCallable<ListProfilesRequest,ListProfilesResponse>
Overrides

listProfilesPagedCallable()

public UnaryCallable<ListProfilesRequest,ExportServiceClient.ListProfilesPagedResponse> listProfilesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListProfilesRequest,ListProfilesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()