Class HttpJsonProjectServiceStub (2.53.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

acceptTermsCallable()

public UnaryCallable<AcceptTermsRequest,Project> acceptTermsCallable()
Returns
Type Description
UnaryCallable<AcceptTermsRequest,Project>
Overrides

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

enrollSolutionCallable()

public UnaryCallable<EnrollSolutionRequest,Operation> enrollSolutionCallable()
Returns
Type Description
UnaryCallable<EnrollSolutionRequest,Operation>
Overrides

enrollSolutionOperationCallable()

public OperationCallable<EnrollSolutionRequest,EnrollSolutionResponse,EnrollSolutionMetadata> enrollSolutionOperationCallable()
Returns
Type Description
OperationCallable<EnrollSolutionRequest,EnrollSolutionResponse,EnrollSolutionMetadata>
Overrides

getAlertConfigCallable()

public UnaryCallable<GetAlertConfigRequest,AlertConfig> getAlertConfigCallable()
Returns
Type Description
UnaryCallable<GetAlertConfigRequest,AlertConfig>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getLoggingConfigCallable()

public UnaryCallable<GetLoggingConfigRequest,LoggingConfig> getLoggingConfigCallable()
Returns
Type Description
UnaryCallable<GetLoggingConfigRequest,LoggingConfig>
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

listEnrolledSolutionsCallable()

public UnaryCallable<ListEnrolledSolutionsRequest,ListEnrolledSolutionsResponse> listEnrolledSolutionsCallable()
Returns
Type Description
UnaryCallable<ListEnrolledSolutionsRequest,ListEnrolledSolutionsResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAlertConfigCallable()

public UnaryCallable<UpdateAlertConfigRequest,AlertConfig> updateAlertConfigCallable()
Returns
Type Description
UnaryCallable<UpdateAlertConfigRequest,AlertConfig>
Overrides

updateLoggingConfigCallable()

public UnaryCallable<UpdateLoggingConfigRequest,LoggingConfig> updateLoggingConfigCallable()
Returns
Type Description
UnaryCallable<UpdateLoggingConfigRequest,LoggingConfig>
Overrides