Class HttpJsonEvaluationServiceStub (0.49.0)

public class HttpJsonEvaluationServiceStub extends EvaluationServiceStub

REST stub implementation for the EvaluationService service API.

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

Inheritance

java.lang.Object > EvaluationServiceStub > HttpJsonEvaluationServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(EvaluationServiceStubSettings settings)

public static final HttpJsonEvaluationServiceStub create(EvaluationServiceStubSettings settings)
Parameter
Name Description
settings EvaluationServiceStubSettings
Returns
Type Description
HttpJsonEvaluationServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

Constructors

HttpJsonEvaluationServiceStub(EvaluationServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonEvaluationServiceStub(EvaluationServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonEvaluationServiceStub, 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 EvaluationServiceStubSettings
clientContext ClientContext

HttpJsonEvaluationServiceStub(EvaluationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonEvaluationServiceStub(EvaluationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

createEvaluationCallable()

public UnaryCallable<CreateEvaluationRequest,Operation> createEvaluationCallable()
Returns
Type Description
UnaryCallable<CreateEvaluationRequest,Operation>
Overrides

createEvaluationOperationCallable()

public OperationCallable<CreateEvaluationRequest,Evaluation,CreateEvaluationMetadata> createEvaluationOperationCallable()
Returns
Type Description
OperationCallable<CreateEvaluationRequest,Evaluation,CreateEvaluationMetadata>
Overrides

getEvaluationCallable()

public UnaryCallable<GetEvaluationRequest,Evaluation> getEvaluationCallable()
Returns
Type Description
UnaryCallable<GetEvaluationRequest,Evaluation>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listEvaluationResultsCallable()

public UnaryCallable<ListEvaluationResultsRequest,ListEvaluationResultsResponse> listEvaluationResultsCallable()
Returns
Type Description
UnaryCallable<ListEvaluationResultsRequest,ListEvaluationResultsResponse>
Overrides

listEvaluationResultsPagedCallable()

public UnaryCallable<ListEvaluationResultsRequest,EvaluationServiceClient.ListEvaluationResultsPagedResponse> listEvaluationResultsPagedCallable()
Returns
Type Description
UnaryCallable<ListEvaluationResultsRequest,ListEvaluationResultsPagedResponse>
Overrides

listEvaluationsCallable()

public UnaryCallable<ListEvaluationsRequest,ListEvaluationsResponse> listEvaluationsCallable()
Returns
Type Description
UnaryCallable<ListEvaluationsRequest,ListEvaluationsResponse>
Overrides

listEvaluationsPagedCallable()

public UnaryCallable<ListEvaluationsRequest,EvaluationServiceClient.ListEvaluationsPagedResponse> listEvaluationsPagedCallable()
Returns
Type Description
UnaryCallable<ListEvaluationsRequest,ListEvaluationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()