Class HttpJsonProjectServiceStub (0.43.0)

public class HttpJsonProjectServiceStub extends ProjectServiceStub

REST stub implementation for the ProjectService service API.

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

Inheritance

java.lang.Object > ProjectServiceStub > HttpJsonProjectServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ProjectServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonProjectServiceStub, 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 HttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
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()