Package com.google.appengine.v1.stub
Class HttpJsonVersionsStub
- java.lang.Object
-
- com.google.appengine.v1.stub.VersionsStub
-
- com.google.appengine.v1.stub.HttpJsonVersionsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonVersionsStub extends VersionsStub
REST stub implementation for the Versions service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonVersionsStub(VersionsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonVersionsStub, using the given settings.protected
HttpJsonVersionsStub(VersionsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonVersionsStub, 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 HttpJsonVersionsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonVersionsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonVersionsStub
create(VersionsStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateVersionRequest,com.google.longrunning.Operation>
createVersionCallable()
com.google.api.gax.rpc.OperationCallable<CreateVersionRequest,Version,CreateVersionMetadataV1>
createVersionOperationCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteVersionRequest,com.google.longrunning.Operation>
deleteVersionCallable()
com.google.api.gax.rpc.OperationCallable<DeleteVersionRequest,com.google.protobuf.Empty,OperationMetadataV1>
deleteVersionOperationCallable()
com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
com.google.api.gax.rpc.UnaryCallable<GetVersionRequest,Version>
getVersionCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ListVersionsResponse>
listVersionsCallable()
com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,VersionsClient.ListVersionsPagedResponse>
listVersionsPagedCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<UpdateVersionRequest,com.google.longrunning.Operation>
updateVersionCallable()
com.google.api.gax.rpc.OperationCallable<UpdateVersionRequest,Version,OperationMetadataV1>
updateVersionOperationCallable()
-
Methods inherited from class com.google.appengine.v1.stub.VersionsStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonVersionsStub
protected HttpJsonVersionsStub(VersionsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonVersionsStub, 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
-
HttpJsonVersionsStub
protected HttpJsonVersionsStub(VersionsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonVersionsStub, 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 HttpJsonVersionsStub create(VersionsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonVersionsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonVersionsStub 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 classVersionsStub
-
listVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ListVersionsResponse> listVersionsCallable()
- Overrides:
listVersionsCallable
in classVersionsStub
-
listVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,VersionsClient.ListVersionsPagedResponse> listVersionsPagedCallable()
- Overrides:
listVersionsPagedCallable
in classVersionsStub
-
getVersionCallable
public com.google.api.gax.rpc.UnaryCallable<GetVersionRequest,Version> getVersionCallable()
- Overrides:
getVersionCallable
in classVersionsStub
-
createVersionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateVersionRequest,com.google.longrunning.Operation> createVersionCallable()
- Overrides:
createVersionCallable
in classVersionsStub
-
createVersionOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateVersionRequest,Version,CreateVersionMetadataV1> createVersionOperationCallable()
- Overrides:
createVersionOperationCallable
in classVersionsStub
-
updateVersionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateVersionRequest,com.google.longrunning.Operation> updateVersionCallable()
- Overrides:
updateVersionCallable
in classVersionsStub
-
updateVersionOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateVersionRequest,Version,OperationMetadataV1> updateVersionOperationCallable()
- Overrides:
updateVersionOperationCallable
in classVersionsStub
-
deleteVersionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteVersionRequest,com.google.longrunning.Operation> deleteVersionCallable()
- Overrides:
deleteVersionCallable
in classVersionsStub
-
deleteVersionOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteVersionRequest,com.google.protobuf.Empty,OperationMetadataV1> deleteVersionOperationCallable()
- Overrides:
deleteVersionOperationCallable
in classVersionsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classVersionsStub
-
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
-
-