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 protected
HttpJsonServicesStub(ServicesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonServicesStub, using the given settings.protected
HttpJsonServicesStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonServicesStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonServicesStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonServicesStub
create(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.HttpJsonOperationsStub
getHttpJsonOperationsStub()
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()
boolean
isShutdown()
boolean
isTerminated()
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()
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<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:
getHttpJsonOperationsStub
in classServicesStub
-
createServiceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateServiceRequest,com.google.longrunning.Operation> createServiceCallable()
- Overrides:
createServiceCallable
in classServicesStub
-
createServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateServiceRequest,Service,Service> createServiceOperationCallable()
- Overrides:
createServiceOperationCallable
in classServicesStub
-
getServiceCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service> getServiceCallable()
- Overrides:
getServiceCallable
in classServicesStub
-
listServicesCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
- Overrides:
listServicesCallable
in classServicesStub
-
listServicesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ServicesClient.ListServicesPagedResponse> listServicesPagedCallable()
- Overrides:
listServicesPagedCallable
in classServicesStub
-
updateServiceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateServiceRequest,com.google.longrunning.Operation> updateServiceCallable()
- Overrides:
updateServiceCallable
in classServicesStub
-
updateServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateServiceRequest,Service,Service> updateServiceOperationCallable()
- Overrides:
updateServiceOperationCallable
in classServicesStub
-
deleteServiceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteServiceRequest,com.google.longrunning.Operation> deleteServiceCallable()
- Overrides:
deleteServiceCallable
in classServicesStub
-
deleteServiceOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteServiceRequest,Service,Service> deleteServiceOperationCallable()
- Overrides:
deleteServiceOperationCallable
in classServicesStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classServicesStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classServicesStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classServicesStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-