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 protectedHttpJsonRuleSetServiceStub(RuleSetServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonRuleSetServiceStub, using the given settings.protectedHttpJsonRuleSetServiceStub(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 booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonRuleSetServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonRuleSetServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonRuleSetServiceStubcreate(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()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListRuleSetsRequest,ListRuleSetsResponse>listRuleSetsCallable()com.google.api.gax.rpc.UnaryCallable<ListRuleSetsRequest,RuleSetServiceClient.ListRuleSetsPagedResponse>listRuleSetsPagedCallable()voidshutdown()voidshutdownNow()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:
createRuleSetCallablein classRuleSetServiceStub
-
getRuleSetCallable
public com.google.api.gax.rpc.UnaryCallable<GetRuleSetRequest,RuleSet> getRuleSetCallable()
- Overrides:
getRuleSetCallablein classRuleSetServiceStub
-
updateRuleSetCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRuleSetRequest,RuleSet> updateRuleSetCallable()
- Overrides:
updateRuleSetCallablein classRuleSetServiceStub
-
deleteRuleSetCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteRuleSetRequest,com.google.protobuf.Empty> deleteRuleSetCallable()
- Overrides:
deleteRuleSetCallablein classRuleSetServiceStub
-
listRuleSetsCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuleSetsRequest,ListRuleSetsResponse> listRuleSetsCallable()
- Overrides:
listRuleSetsCallablein classRuleSetServiceStub
-
listRuleSetsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuleSetsRequest,RuleSetServiceClient.ListRuleSetsPagedResponse> listRuleSetsPagedCallable()
- Overrides:
listRuleSetsPagedCallablein classRuleSetServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-