Class HttpJsonLicensesStub (1.22.0)

public class HttpJsonLicensesStub extends LicensesStub

REST stub implementation for the Licenses service API.

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

Inheritance

java.lang.Object > LicensesStub > HttpJsonLicensesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(LicensesStubSettings settings)

public static final HttpJsonLicensesStub create(LicensesStubSettings settings)
Parameter
NameDescription
settingsLicensesStubSettings
Returns
TypeDescription
HttpJsonLicensesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonLicensesStub(LicensesStubSettings settings, ClientContext clientContext)

protected HttpJsonLicensesStub(LicensesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonLicensesStub, 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
settingsLicensesStubSettings
clientContextClientContext

HttpJsonLicensesStub(LicensesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonLicensesStub(LicensesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

deleteCallable()

public UnaryCallable<DeleteLicenseRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteLicenseRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteLicenseRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteLicenseRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetLicenseRequest,License> getCallable()
Returns
TypeDescription
UnaryCallable<GetLicenseRequest,License>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyLicenseRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<GetIamPolicyLicenseRequest,Policy>
Overrides

insertCallable()

public UnaryCallable<InsertLicenseRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertLicenseRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertLicenseRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertLicenseRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListLicensesRequest,LicensesListResponse> listCallable()
Returns
TypeDescription
UnaryCallable<ListLicensesRequest,LicensesListResponse>
Overrides

listPagedCallable()

public UnaryCallable<ListLicensesRequest,LicensesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListLicensesRequest,ListPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyLicenseRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<SetIamPolicyLicenseRequest,Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsLicenseRequest,TestPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<TestIamPermissionsLicenseRequest,TestPermissionsResponse>
Overrides