Class GrpcRuleSetServiceStub
- java.lang.Object
-
- com.google.cloud.contentwarehouse.v1.stub.RuleSetServiceStub
-
- com.google.cloud.contentwarehouse.v1.stub.GrpcRuleSetServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcRuleSetServiceStub extends RuleSetServiceStub
gRPC 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 protectedGrpcRuleSetServiceStub(RuleSetServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcRuleSetServiceStub, using the given settings.protectedGrpcRuleSetServiceStub(RuleSetServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcRuleSetServiceStub, 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 GrpcRuleSetServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcRuleSetServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcRuleSetServiceStubcreate(RuleSetServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateRuleSetRequest,RuleSet>createRuleSetCallable()com.google.api.gax.rpc.UnaryCallable<DeleteRuleSetRequest,com.google.protobuf.Empty>deleteRuleSetCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()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
-
GrpcRuleSetServiceStub
protected GrpcRuleSetServiceStub(RuleSetServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcRuleSetServiceStub, 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
-
GrpcRuleSetServiceStub
protected GrpcRuleSetServiceStub(RuleSetServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcRuleSetServiceStub, 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 GrpcRuleSetServiceStub create(RuleSetServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcRuleSetServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcRuleSetServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
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
-
-