Package com.google.cloud.compute.v1.stub
Class HttpJsonFirewallsStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.FirewallsStub
-
- com.google.cloud.compute.v1.stub.HttpJsonFirewallsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonFirewallsStub extends FirewallsStub
REST stub implementation for the Firewalls service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonFirewallsStub(FirewallsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonFirewallsStub, using the given settings.protected
HttpJsonFirewallsStub(FirewallsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonFirewallsStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonFirewallsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonFirewallsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonFirewallsStub
create(FirewallsStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<DeleteFirewallRequest,Operation>
deleteCallable()
com.google.api.gax.rpc.OperationCallable<DeleteFirewallRequest,Operation,Operation>
deleteOperationCallable()
com.google.api.gax.rpc.UnaryCallable<GetFirewallRequest,Firewall>
getCallable()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
com.google.api.gax.rpc.UnaryCallable<InsertFirewallRequest,Operation>
insertCallable()
com.google.api.gax.rpc.OperationCallable<InsertFirewallRequest,Operation,Operation>
insertOperationCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListFirewallsRequest,FirewallList>
listCallable()
com.google.api.gax.rpc.UnaryCallable<ListFirewallsRequest,FirewallsClient.ListPagedResponse>
listPagedCallable()
com.google.api.gax.rpc.UnaryCallable<PatchFirewallRequest,Operation>
patchCallable()
com.google.api.gax.rpc.OperationCallable<PatchFirewallRequest,Operation,Operation>
patchOperationCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<UpdateFirewallRequest,Operation>
updateCallable()
com.google.api.gax.rpc.OperationCallable<UpdateFirewallRequest,Operation,Operation>
updateOperationCallable()
-
-
-
Constructor Detail
-
HttpJsonFirewallsStub
protected HttpJsonFirewallsStub(FirewallsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonFirewallsStub, 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
-
HttpJsonFirewallsStub
protected HttpJsonFirewallsStub(FirewallsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonFirewallsStub, 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 HttpJsonFirewallsStub create(FirewallsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonFirewallsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonFirewallsStub 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<DeleteFirewallRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classFirewallsStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteFirewallRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classFirewallsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetFirewallRequest,Firewall> getCallable()
- Overrides:
getCallable
in classFirewallsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertFirewallRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classFirewallsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertFirewallRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classFirewallsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListFirewallsRequest,FirewallList> listCallable()
- Overrides:
listCallable
in classFirewallsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFirewallsRequest,FirewallsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classFirewallsStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchFirewallRequest,Operation> patchCallable()
- Overrides:
patchCallable
in classFirewallsStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchFirewallRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallable
in classFirewallsStub
-
updateCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateFirewallRequest,Operation> updateCallable()
- Overrides:
updateCallable
in classFirewallsStub
-
updateOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateFirewallRequest,Operation,Operation> updateOperationCallable()
- Overrides:
updateOperationCallable
in classFirewallsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classFirewallsStub
-
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
-
-