Package com.google.cloud.compute.v1.stub
Class HttpJsonLicensesStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.LicensesStub
-
- com.google.cloud.compute.v1.stub.HttpJsonLicensesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonLicensesStub(LicensesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonLicensesStub, using the given settings.protectedHttpJsonLicensesStub(LicensesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonLicensesStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonLicensesStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonLicensesStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonLicensesStubcreate(LicensesStubSettings settings)com.google.api.gax.rpc.UnaryCallable<DeleteLicenseRequest,Operation>deleteCallable()com.google.api.gax.rpc.OperationCallable<DeleteLicenseRequest,Operation,Operation>deleteOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetLicenseRequest,License>getCallable()com.google.api.gax.rpc.UnaryCallable<GetIamPolicyLicenseRequest,Policy>getIamPolicyCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<InsertLicenseRequest,Operation>insertCallable()com.google.api.gax.rpc.OperationCallable<InsertLicenseRequest,Operation,Operation>insertOperationCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListLicensesRequest,LicensesListResponse>listCallable()com.google.api.gax.rpc.UnaryCallable<ListLicensesRequest,LicensesClient.ListPagedResponse>listPagedCallable()com.google.api.gax.rpc.UnaryCallable<SetIamPolicyLicenseRequest,Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsLicenseRequest,TestPermissionsResponse>testIamPermissionsCallable()
-
-
-
Constructor Detail
-
HttpJsonLicensesStub
protected HttpJsonLicensesStub(LicensesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
HttpJsonLicensesStub
protected HttpJsonLicensesStub(LicensesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonLicensesStub create(LicensesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonLicensesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonLicensesStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteLicenseRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classLicensesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteLicenseRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classLicensesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetLicenseRequest,License> getCallable()
- Overrides:
getCallablein classLicensesStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicyLicenseRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classLicensesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertLicenseRequest,Operation> insertCallable()
- Overrides:
insertCallablein classLicensesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertLicenseRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classLicensesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListLicensesRequest,LicensesListResponse> listCallable()
- Overrides:
listCallablein classLicensesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListLicensesRequest,LicensesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classLicensesStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicyLicenseRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classLicensesStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsLicenseRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classLicensesStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classLicensesStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-