Class HttpJsonIDSStub (1.36.0)

See more code actions.
public class HttpJsonIDSStub extends IDSStub

REST stub implementation for the IDS service API.

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

java.lang.Object > IDSStub > HttpJsonIDSStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonIDSStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonIDSStub
Exceptions
TypeDescription
IOException

create(IDSStubSettings settings)

public static final HttpJsonIDSStub create(IDSStubSettings settings)
Parameter
NameDescription
settingsIDSStubSettings
Returns
TypeDescription
HttpJsonIDSStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonIDSStub(IDSStubSettings settings, ClientContext clientContext)

protected HttpJsonIDSStub(IDSStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonIDSStub, 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
settingsIDSStubSettings
clientContextClientContext

HttpJsonIDSStub(IDSStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonIDSStub(IDSStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonIDSStub, 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
settingsIDSStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

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

createEndpointCallable()

public UnaryCallable<CreateEndpointRequest,Operation> createEndpointCallable()
Overrides

createEndpointOperationCallable()

public OperationCallable<CreateEndpointRequest,Endpoint,OperationMetadata> createEndpointOperationCallable()
Overrides

deleteEndpointCallable()

public UnaryCallable<DeleteEndpointRequest,Operation> deleteEndpointCallable()
Overrides

deleteEndpointOperationCallable()

public OperationCallable<DeleteEndpointRequest,Empty,OperationMetadata> deleteEndpointOperationCallable()
Overrides

getEndpointCallable()

public UnaryCallable<GetEndpointRequest,Endpoint> getEndpointCallable()
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listEndpointsCallable()

public UnaryCallable<ListEndpointsRequest,ListEndpointsResponse> listEndpointsCallable()
Overrides

listEndpointsPagedCallable()

public UnaryCallable<ListEndpointsRequest,IDSClient.ListEndpointsPagedResponse> listEndpointsPagedCallable()
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()