Package com.google.appengine.v1.stub
Class HttpJsonFirewallStub
- java.lang.Object
-
- com.google.appengine.v1.stub.FirewallStub
-
- com.google.appengine.v1.stub.HttpJsonFirewallStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonFirewallStub extends FirewallStub
REST stub implementation for the Firewall service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonFirewallStub(FirewallStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonFirewallStub, using the given settings.protected
HttpJsonFirewallStub(FirewallStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonFirewallStub, 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)
com.google.api.gax.rpc.UnaryCallable<BatchUpdateIngressRulesRequest,BatchUpdateIngressRulesResponse>
batchUpdateIngressRulesCallable()
void
close()
static HttpJsonFirewallStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonFirewallStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonFirewallStub
create(FirewallStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateIngressRuleRequest,FirewallRule>
createIngressRuleCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteIngressRuleRequest,com.google.protobuf.Empty>
deleteIngressRuleCallable()
com.google.api.gax.rpc.UnaryCallable<GetIngressRuleRequest,FirewallRule>
getIngressRuleCallable()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListIngressRulesRequest,ListIngressRulesResponse>
listIngressRulesCallable()
com.google.api.gax.rpc.UnaryCallable<ListIngressRulesRequest,FirewallClient.ListIngressRulesPagedResponse>
listIngressRulesPagedCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<UpdateIngressRuleRequest,FirewallRule>
updateIngressRuleCallable()
-
-
-
Constructor Detail
-
HttpJsonFirewallStub
protected HttpJsonFirewallStub(FirewallStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonFirewallStub, 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
-
HttpJsonFirewallStub
protected HttpJsonFirewallStub(FirewallStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonFirewallStub, 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 HttpJsonFirewallStub create(FirewallStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonFirewallStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonFirewallStub 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()
-
listIngressRulesCallable
public com.google.api.gax.rpc.UnaryCallable<ListIngressRulesRequest,ListIngressRulesResponse> listIngressRulesCallable()
- Overrides:
listIngressRulesCallable
in classFirewallStub
-
listIngressRulesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListIngressRulesRequest,FirewallClient.ListIngressRulesPagedResponse> listIngressRulesPagedCallable()
- Overrides:
listIngressRulesPagedCallable
in classFirewallStub
-
batchUpdateIngressRulesCallable
public com.google.api.gax.rpc.UnaryCallable<BatchUpdateIngressRulesRequest,BatchUpdateIngressRulesResponse> batchUpdateIngressRulesCallable()
- Overrides:
batchUpdateIngressRulesCallable
in classFirewallStub
-
createIngressRuleCallable
public com.google.api.gax.rpc.UnaryCallable<CreateIngressRuleRequest,FirewallRule> createIngressRuleCallable()
- Overrides:
createIngressRuleCallable
in classFirewallStub
-
getIngressRuleCallable
public com.google.api.gax.rpc.UnaryCallable<GetIngressRuleRequest,FirewallRule> getIngressRuleCallable()
- Overrides:
getIngressRuleCallable
in classFirewallStub
-
updateIngressRuleCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateIngressRuleRequest,FirewallRule> updateIngressRuleCallable()
- Overrides:
updateIngressRuleCallable
in classFirewallStub
-
deleteIngressRuleCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteIngressRuleRequest,com.google.protobuf.Empty> deleteIngressRuleCallable()
- Overrides:
deleteIngressRuleCallable
in classFirewallStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classFirewallStub
-
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
-
-