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 protected
GrpcRuleSetServiceStub(RuleSetServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcRuleSetServiceStub, using the given settings.protected
GrpcRuleSetServiceStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcRuleSetServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcRuleSetServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcRuleSetServiceStub
create(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.GrpcOperationsStub
getOperationsStub()
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
-
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:
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
-
-