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 protectedGrpcScheduleServiceStub(ScheduleServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcScheduleServiceStub, using the given settings.protectedGrpcScheduleServiceStub(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 booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcScheduleServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcScheduleServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcScheduleServiceStubcreate(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.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetScheduleRequest,Schedule>getScheduleCallable()booleanisShutdown()booleanisTerminated()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()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<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:
getOperationsStubin classScheduleServiceStub
-
createScheduleCallable
public com.google.api.gax.rpc.UnaryCallable<CreateScheduleRequest,Schedule> createScheduleCallable()
- Overrides:
createScheduleCallablein classScheduleServiceStub
-
deleteScheduleCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteScheduleRequest,com.google.longrunning.Operation> deleteScheduleCallable()
- Overrides:
deleteScheduleCallablein classScheduleServiceStub
-
deleteScheduleOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteScheduleRequest,com.google.protobuf.Empty,DeleteOperationMetadata> deleteScheduleOperationCallable()
- Overrides:
deleteScheduleOperationCallablein classScheduleServiceStub
-
getScheduleCallable
public com.google.api.gax.rpc.UnaryCallable<GetScheduleRequest,Schedule> getScheduleCallable()
- Overrides:
getScheduleCallablein classScheduleServiceStub
-
listSchedulesCallable
public com.google.api.gax.rpc.UnaryCallable<ListSchedulesRequest,ListSchedulesResponse> listSchedulesCallable()
- Overrides:
listSchedulesCallablein classScheduleServiceStub
-
listSchedulesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSchedulesRequest,ScheduleServiceClient.ListSchedulesPagedResponse> listSchedulesPagedCallable()
- Overrides:
listSchedulesPagedCallablein classScheduleServiceStub
-
pauseScheduleCallable
public com.google.api.gax.rpc.UnaryCallable<PauseScheduleRequest,com.google.protobuf.Empty> pauseScheduleCallable()
- Overrides:
pauseScheduleCallablein classScheduleServiceStub
-
resumeScheduleCallable
public com.google.api.gax.rpc.UnaryCallable<ResumeScheduleRequest,com.google.protobuf.Empty> resumeScheduleCallable()
- Overrides:
resumeScheduleCallablein classScheduleServiceStub
-
updateScheduleCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateScheduleRequest,Schedule> updateScheduleCallable()
- Overrides:
updateScheduleCallablein classScheduleServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classScheduleServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ScheduleServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classScheduleServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classScheduleServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classScheduleServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classScheduleServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classScheduleServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-