Package com.google.cloud.run.v2.stub
Class HttpJsonServicesStub
- java.lang.Object
-
- com.google.cloud.run.v2.stub.ServicesStub
-
- com.google.cloud.run.v2.stub.HttpJsonServicesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonServicesStub extends ServicesStub
REST stub implementation for the Services service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonServicesStub(ServicesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonServicesStub, using the given settings.protectedHttpJsonServicesStub(ServicesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonServicesStub, 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 HttpJsonServicesStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonServicesStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonServicesStubcreate(ServicesStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateServiceRequest,com.google.longrunning.Operation>createServiceCallable()com.google.api.gax.rpc.OperationCallable<CreateServiceRequest,Service,Service>createServiceOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteServiceRequest,com.google.longrunning.Operation>deleteServiceCallable()com.google.api.gax.rpc.OperationCallable<DeleteServiceRequest,Service,Service>deleteServiceOperationCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service>getServiceCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse>listServicesCallable()com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ServicesClient.ListServicesPagedResponse>listServicesPagedCallable()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<UpdateServiceRequest,com.google.longrunning.Operation>updateServiceCallable()com.google.api.gax.rpc.OperationCallable<UpdateServiceRequest,Service,Service>updateServiceOperationCallable()-
Methods inherited from class com.google.cloud.run.v2.stub.ServicesStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonServicesStub
protected HttpJsonServicesStub(ServicesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonServicesStub, 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
-
HttpJsonServicesStub
protected HttpJsonServicesStub(ServicesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonServicesStub, 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 HttpJsonServicesStub create(ServicesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonServicesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonServicesStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin classServicesStub
-
createServiceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateServiceRequest,com.google.longrunning.Operation> createServiceCallable()
- Overrides:
createServiceCallablein classServicesStub
-
createServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateServiceRequest,Service,Service> createServiceOperationCallable()
- Overrides:
createServiceOperationCallablein classServicesStub
-
getServiceCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service> getServiceCallable()
- Overrides:
getServiceCallablein classServicesStub
-
listServicesCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
- Overrides:
listServicesCallablein classServicesStub
-
listServicesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ServicesClient.ListServicesPagedResponse> listServicesPagedCallable()
- Overrides:
listServicesPagedCallablein classServicesStub
-
updateServiceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateServiceRequest,com.google.longrunning.Operation> updateServiceCallable()
- Overrides:
updateServiceCallablein classServicesStub
-
updateServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateServiceRequest,Service,Service> updateServiceOperationCallable()
- Overrides:
updateServiceOperationCallablein classServicesStub
-
deleteServiceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteServiceRequest,com.google.longrunning.Operation> deleteServiceCallable()
- Overrides:
deleteServiceCallablein classServicesStub
-
deleteServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteServiceRequest,Service,Service> deleteServiceOperationCallable()
- Overrides:
deleteServiceOperationCallablein classServicesStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classServicesStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classServicesStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classServicesStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classServicesStub
-
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
-
-