Class GrpcScheduleServiceStub
- java.lang.Object
-
- com.google.cloud.aiplatform.v1.stub.ScheduleServiceStub
-
- com.google.cloud.aiplatform.v1.stub.GrpcScheduleServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcScheduleServiceStub extends ScheduleServiceStub
gRPC stub implementation for the ScheduleService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcScheduleServiceStub(ScheduleServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcScheduleServiceStub, using the given settings.protected
GrpcScheduleServiceStub(ScheduleServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcScheduleServiceStub, 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 GrpcScheduleServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcScheduleServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcScheduleServiceStub
create(ScheduleServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateScheduleRequest,Schedule>
createScheduleCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteScheduleRequest,com.google.longrunning.Operation>
deleteScheduleCallable()
com.google.api.gax.rpc.OperationCallable<DeleteScheduleRequest,com.google.protobuf.Empty,DeleteOperationMetadata>
deleteScheduleOperationCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicyCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetScheduleRequest,Schedule>
getScheduleCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
listLocationsCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ScheduleServiceClient.ListLocationsPagedResponse>
listLocationsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListSchedulesRequest,ListSchedulesResponse>
listSchedulesCallable()
com.google.api.gax.rpc.UnaryCallable<ListSchedulesRequest,ScheduleServiceClient.ListSchedulesPagedResponse>
listSchedulesPagedCallable()
com.google.api.gax.rpc.UnaryCallable<PauseScheduleRequest,com.google.protobuf.Empty>
pauseScheduleCallable()
com.google.api.gax.rpc.UnaryCallable<ResumeScheduleRequest,com.google.protobuf.Empty>
resumeScheduleCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicyCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateScheduleRequest,Schedule>
updateScheduleCallable()
-
-
-
Constructor Detail
-
GrpcScheduleServiceStub
protected GrpcScheduleServiceStub(ScheduleServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcScheduleServiceStub, 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
-
GrpcScheduleServiceStub
protected GrpcScheduleServiceStub(ScheduleServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcScheduleServiceStub, 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 GrpcScheduleServiceStub create(ScheduleServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcScheduleServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcScheduleServiceStub 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:
getOperationsStub
in classScheduleServiceStub
-
createScheduleCallable
public com.google.api.gax.rpc.UnaryCallable<CreateScheduleRequest,Schedule> createScheduleCallable()
- Overrides:
createScheduleCallable
in classScheduleServiceStub
-
deleteScheduleCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteScheduleRequest,com.google.longrunning.Operation> deleteScheduleCallable()
- Overrides:
deleteScheduleCallable
in classScheduleServiceStub
-
deleteScheduleOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteScheduleRequest,com.google.protobuf.Empty,DeleteOperationMetadata> deleteScheduleOperationCallable()
- Overrides:
deleteScheduleOperationCallable
in classScheduleServiceStub
-
getScheduleCallable
public com.google.api.gax.rpc.UnaryCallable<GetScheduleRequest,Schedule> getScheduleCallable()
- Overrides:
getScheduleCallable
in classScheduleServiceStub
-
listSchedulesCallable
public com.google.api.gax.rpc.UnaryCallable<ListSchedulesRequest,ListSchedulesResponse> listSchedulesCallable()
- Overrides:
listSchedulesCallable
in classScheduleServiceStub
-
listSchedulesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSchedulesRequest,ScheduleServiceClient.ListSchedulesPagedResponse> listSchedulesPagedCallable()
- Overrides:
listSchedulesPagedCallable
in classScheduleServiceStub
-
pauseScheduleCallable
public com.google.api.gax.rpc.UnaryCallable<PauseScheduleRequest,com.google.protobuf.Empty> pauseScheduleCallable()
- Overrides:
pauseScheduleCallable
in classScheduleServiceStub
-
resumeScheduleCallable
public com.google.api.gax.rpc.UnaryCallable<ResumeScheduleRequest,com.google.protobuf.Empty> resumeScheduleCallable()
- Overrides:
resumeScheduleCallable
in classScheduleServiceStub
-
updateScheduleCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateScheduleRequest,Schedule> updateScheduleCallable()
- Overrides:
updateScheduleCallable
in classScheduleServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classScheduleServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ScheduleServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classScheduleServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classScheduleServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classScheduleServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classScheduleServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classScheduleServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classScheduleServiceStub
-
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
-
-