Class GrpcJobsStub (0.67.0)

publicclass GrpcJobsStubextendsJobsStub

gRPC stub implementation for the Jobs service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > JobsStub > GrpcJobsStub

Static Methods

create(ClientContext clientContext)

publicstaticfinalGrpcJobsStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcJobsStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

publicstaticfinalGrpcJobsStubcreate(ClientContextclientContext,GrpcStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcJobsStub
Exceptions
Type Description
IOException

create(JobsStubSettings settings)

publicstaticfinalGrpcJobsStubcreate(JobsStubSettingssettings)
Parameter
Name Description
settings JobsStubSettings
Returns
Type Description
GrpcJobsStub
Exceptions
Type Description
IOException

Constructors

GrpcJobsStub(JobsStubSettings settings, ClientContext clientContext)

protectedGrpcJobsStub(JobsStubSettingssettings,ClientContextclientContext)

Constructs an instance of GrpcJobsStub, 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.

Parameters
Name Description
settings JobsStubSettings
clientContext ClientContext

GrpcJobsStub(JobsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protectedGrpcJobsStub(JobsStubSettingssettings,ClientContextclientContext,GrpcStubCallableFactorycallableFactory)

Constructs an instance of GrpcJobsStub, 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.

Parameters
Name Description
settings JobsStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

publicfinalvoidclose()
Overrides

createJobCallable()

publicUnaryCallable<CreateJobRequest,Operation>createJobCallable()
Returns
Type Description
UnaryCallable<CreateJobRequest,Operation>
Overrides

createJobOperationCallable()

publicOperationCallable<CreateJobRequest,Job,Job>createJobOperationCallable()
Returns
Type Description
OperationCallable<CreateJobRequest,Job,Job>
Overrides

deleteJobCallable()

publicUnaryCallable<DeleteJobRequest,Operation>deleteJobCallable()
Returns
Type Description
UnaryCallable<DeleteJobRequest,Operation>
Overrides

deleteJobOperationCallable()

publicOperationCallable<DeleteJobRequest,Job,Job>deleteJobOperationCallable()
Returns
Type Description
OperationCallable<DeleteJobRequest,Job,Job>
Overrides

getIamPolicyCallable()

publicUnaryCallable<GetIamPolicyRequest,Policy>getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getJobCallable()

publicUnaryCallable<GetJobRequest,Job>getJobCallable()
Returns
Type Description
UnaryCallable<GetJobRequest,Job>
Overrides

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listJobsCallable()

publicUnaryCallable<ListJobsRequest,ListJobsResponse>listJobsCallable()
Returns
Type Description
UnaryCallable<ListJobsRequest,ListJobsResponse>
Overrides

listJobsPagedCallable()

publicUnaryCallable<ListJobsRequest,JobsClient.ListJobsPagedResponse>listJobsPagedCallable()
Returns
Type Description
UnaryCallable<ListJobsRequest,ListJobsPagedResponse>
Overrides

runJobCallable()

publicUnaryCallable<RunJobRequest,Operation>runJobCallable()
Returns
Type Description
UnaryCallable<RunJobRequest,Operation>
Overrides

runJobOperationCallable()

publicOperationCallable<RunJobRequest,Execution,Execution>runJobOperationCallable()
Returns
Type Description
OperationCallable<RunJobRequest,Execution,Execution>
Overrides

setIamPolicyCallable()

publicUnaryCallable<SetIamPolicyRequest,Policy>setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

testIamPermissionsCallable()

publicUnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse>testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateJobCallable()

publicUnaryCallable<UpdateJobRequest,Operation>updateJobCallable()
Returns
Type Description
UnaryCallable<UpdateJobRequest,Operation>
Overrides

updateJobOperationCallable()

publicOperationCallable<UpdateJobRequest,Job,Job>updateJobOperationCallable()
Returns
Type Description
OperationCallable<UpdateJobRequest,Job,Job>
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.