Class HttpJsonRuleSetServiceStub
- java.lang.Object
-
- com.google.cloud.contentwarehouse.v1.stub.RuleSetServiceStub
-
- com.google.cloud.contentwarehouse.v1.stub.HttpJsonRuleSetServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonRuleSetServiceStub extends RuleSetServiceStub
REST stub implementation for the RuleSetService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonRuleSetServiceStub(RuleSetServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonRuleSetServiceStub, using the given settings.protected
HttpJsonRuleSetServiceStub(RuleSetServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonRuleSetServiceStub, 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 HttpJsonRuleSetServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonRuleSetServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonRuleSetServiceStub
create(RuleSetServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateRuleSetRequest,RuleSet>
createRuleSetCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteRuleSetRequest,com.google.protobuf.Empty>
deleteRuleSetCallable()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
com.google.api.gax.rpc.UnaryCallable<GetRuleSetRequest,RuleSet>
getRuleSetCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListRuleSetsRequest,ListRuleSetsResponse>
listRuleSetsCallable()
com.google.api.gax.rpc.UnaryCallable<ListRuleSetsRequest,RuleSetServiceClient.ListRuleSetsPagedResponse>
listRuleSetsPagedCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<UpdateRuleSetRequest,RuleSet>
updateRuleSetCallable()
-
-
-
Constructor Detail
-
HttpJsonRuleSetServiceStub
protected HttpJsonRuleSetServiceStub(RuleSetServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonRuleSetServiceStub, 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
-
HttpJsonRuleSetServiceStub
protected HttpJsonRuleSetServiceStub(RuleSetServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonRuleSetServiceStub, 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 HttpJsonRuleSetServiceStub create(RuleSetServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRuleSetServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRuleSetServiceStub 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()
-
createRuleSetCallable
public com.google.api.gax.rpc.UnaryCallable<CreateRuleSetRequest,RuleSet> createRuleSetCallable()
- Overrides:
createRuleSetCallable
in classRuleSetServiceStub
-
getRuleSetCallable
public com.google.api.gax.rpc.UnaryCallable<GetRuleSetRequest,RuleSet> getRuleSetCallable()
- Overrides:
getRuleSetCallable
in classRuleSetServiceStub
-
updateRuleSetCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRuleSetRequest,RuleSet> updateRuleSetCallable()
- Overrides:
updateRuleSetCallable
in classRuleSetServiceStub
-
deleteRuleSetCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteRuleSetRequest,com.google.protobuf.Empty> deleteRuleSetCallable()
- Overrides:
deleteRuleSetCallable
in classRuleSetServiceStub
-
listRuleSetsCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuleSetsRequest,ListRuleSetsResponse> listRuleSetsCallable()
- Overrides:
listRuleSetsCallable
in classRuleSetServiceStub
-
listRuleSetsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuleSetsRequest,RuleSetServiceClient.ListRuleSetsPagedResponse> listRuleSetsPagedCallable()
- Overrides:
listRuleSetsPagedCallable
in classRuleSetServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classRuleSetServiceStub
-
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
-
-