Class GrpcWorkflowTemplateServiceStub
- java.lang.Object
-
- com.google.cloud.dataproc.v1.stub.WorkflowTemplateServiceStub
-
- com.google.cloud.dataproc.v1.stub.GrpcWorkflowTemplateServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub
gRPC stub implementation for the WorkflowTemplateService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcWorkflowTemplateServiceStub(WorkflowTemplateServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcWorkflowTemplateServiceStub, using the given settings.protectedGrpcWorkflowTemplateServiceStub(WorkflowTemplateServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcWorkflowTemplateServiceStub, 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 GrpcWorkflowTemplateServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcWorkflowTemplateServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcWorkflowTemplateServiceStubcreate(WorkflowTemplateServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateWorkflowTemplateRequest,WorkflowTemplate>createWorkflowTemplateCallable()com.google.api.gax.rpc.UnaryCallable<DeleteWorkflowTemplateRequest,com.google.protobuf.Empty>deleteWorkflowTemplateCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetWorkflowTemplateRequest,WorkflowTemplate>getWorkflowTemplateCallable()com.google.api.gax.rpc.UnaryCallable<InstantiateInlineWorkflowTemplateRequest,com.google.longrunning.Operation>instantiateInlineWorkflowTemplateCallable()com.google.api.gax.rpc.OperationCallable<InstantiateInlineWorkflowTemplateRequest,com.google.protobuf.Empty,WorkflowMetadata>instantiateInlineWorkflowTemplateOperationCallable()com.google.api.gax.rpc.UnaryCallable<InstantiateWorkflowTemplateRequest,com.google.longrunning.Operation>instantiateWorkflowTemplateCallable()com.google.api.gax.rpc.OperationCallable<InstantiateWorkflowTemplateRequest,com.google.protobuf.Empty,WorkflowMetadata>instantiateWorkflowTemplateOperationCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListWorkflowTemplatesRequest,ListWorkflowTemplatesResponse>listWorkflowTemplatesCallable()com.google.api.gax.rpc.UnaryCallable<ListWorkflowTemplatesRequest,WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse>listWorkflowTemplatesPagedCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateWorkflowTemplateRequest,WorkflowTemplate>updateWorkflowTemplateCallable()-
Methods inherited from class com.google.cloud.dataproc.v1.stub.WorkflowTemplateServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcWorkflowTemplateServiceStub
protected GrpcWorkflowTemplateServiceStub(WorkflowTemplateServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcWorkflowTemplateServiceStub, 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
-
GrpcWorkflowTemplateServiceStub
protected GrpcWorkflowTemplateServiceStub(WorkflowTemplateServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcWorkflowTemplateServiceStub, 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 GrpcWorkflowTemplateServiceStub create(WorkflowTemplateServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcWorkflowTemplateServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcWorkflowTemplateServiceStub 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()
- Overrides:
getOperationsStubin classWorkflowTemplateServiceStub
-
createWorkflowTemplateCallable
public com.google.api.gax.rpc.UnaryCallable<CreateWorkflowTemplateRequest,WorkflowTemplate> createWorkflowTemplateCallable()
- Overrides:
createWorkflowTemplateCallablein classWorkflowTemplateServiceStub
-
getWorkflowTemplateCallable
public com.google.api.gax.rpc.UnaryCallable<GetWorkflowTemplateRequest,WorkflowTemplate> getWorkflowTemplateCallable()
- Overrides:
getWorkflowTemplateCallablein classWorkflowTemplateServiceStub
-
instantiateWorkflowTemplateCallable
public com.google.api.gax.rpc.UnaryCallable<InstantiateWorkflowTemplateRequest,com.google.longrunning.Operation> instantiateWorkflowTemplateCallable()
- Overrides:
instantiateWorkflowTemplateCallablein classWorkflowTemplateServiceStub
-
instantiateWorkflowTemplateOperationCallable
public com.google.api.gax.rpc.OperationCallable<InstantiateWorkflowTemplateRequest,com.google.protobuf.Empty,WorkflowMetadata> instantiateWorkflowTemplateOperationCallable()
- Overrides:
instantiateWorkflowTemplateOperationCallablein classWorkflowTemplateServiceStub
-
instantiateInlineWorkflowTemplateCallable
public com.google.api.gax.rpc.UnaryCallable<InstantiateInlineWorkflowTemplateRequest,com.google.longrunning.Operation> instantiateInlineWorkflowTemplateCallable()
- Overrides:
instantiateInlineWorkflowTemplateCallablein classWorkflowTemplateServiceStub
-
instantiateInlineWorkflowTemplateOperationCallable
public com.google.api.gax.rpc.OperationCallable<InstantiateInlineWorkflowTemplateRequest,com.google.protobuf.Empty,WorkflowMetadata> instantiateInlineWorkflowTemplateOperationCallable()
- Overrides:
instantiateInlineWorkflowTemplateOperationCallablein classWorkflowTemplateServiceStub
-
updateWorkflowTemplateCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateWorkflowTemplateRequest,WorkflowTemplate> updateWorkflowTemplateCallable()
- Overrides:
updateWorkflowTemplateCallablein classWorkflowTemplateServiceStub
-
listWorkflowTemplatesCallable
public com.google.api.gax.rpc.UnaryCallable<ListWorkflowTemplatesRequest,ListWorkflowTemplatesResponse> listWorkflowTemplatesCallable()
- Overrides:
listWorkflowTemplatesCallablein classWorkflowTemplateServiceStub
-
listWorkflowTemplatesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListWorkflowTemplatesRequest,WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse> listWorkflowTemplatesPagedCallable()
- Overrides:
listWorkflowTemplatesPagedCallablein classWorkflowTemplateServiceStub
-
deleteWorkflowTemplateCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteWorkflowTemplateRequest,com.google.protobuf.Empty> deleteWorkflowTemplateCallable()
- Overrides:
deleteWorkflowTemplateCallablein classWorkflowTemplateServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classWorkflowTemplateServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classWorkflowTemplateServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classWorkflowTemplateServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classWorkflowTemplateServiceStub
-
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
-
-