Class GrpcProjectServiceStub (0.39.0)

public class GrpcProjectServiceStub extends ProjectServiceStub

gRPC stub implementation for the ProjectService service API.

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

Inheritance

java.lang.Object > ProjectServiceStub > GrpcProjectServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcProjectServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcProjectServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcProjectServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcProjectServiceStub
Exceptions
Type Description
IOException

create(ProjectServiceStubSettings settings)

public static final GrpcProjectServiceStub create(ProjectServiceStubSettings settings)
Parameter
Name Description
settings ProjectServiceStubSettings
Returns
Type Description
GrpcProjectServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext)

protected GrpcProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcProjectServiceStub, 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 ProjectServiceStubSettings
clientContext ClientContext

GrpcProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcProjectServiceStub, 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 ProjectServiceStubSettings
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

close()

public final void close()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getProjectCallable()

public UnaryCallable<GetProjectRequest,Project> getProjectCallable()
Returns
Type Description
UnaryCallable<GetProjectRequest,Project>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

provisionProjectCallable()

public UnaryCallable<ProvisionProjectRequest,Operation> provisionProjectCallable()
Returns
Type Description
UnaryCallable<ProvisionProjectRequest,Operation>
Overrides

provisionProjectOperationCallable()

public OperationCallable<ProvisionProjectRequest,Project,ProvisionProjectMetadata> provisionProjectOperationCallable()
Returns
Type Description
OperationCallable<ProvisionProjectRequest,Project,ProvisionProjectMetadata>
Overrides

reportConsentChangeCallable()

public UnaryCallable<ReportConsentChangeRequest,Project> reportConsentChangeCallable()
Returns
Type Description
UnaryCallable<ReportConsentChangeRequest,Project>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()