@Generated(value="by gapic-generator-java") public class GrpcContextsStub extends ContextsStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
GrpcContextsStub(ContextsStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcContextsStub, using the given settings.
|
protected |
GrpcContextsStub(ContextsStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcContextsStub, using the given settings.
|
protected GrpcContextsStub(ContextsStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcContextsStub(ContextsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcContextsStub create(ContextsStubSettings settings) throws IOException
IOException
public static final GrpcContextsStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcContextsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public GrpcOperationsStub getOperationsStub()
public UnaryCallable<ListContextsRequest,ListContextsResponse> listContextsCallable()
listContextsCallable
in class ContextsStub
public UnaryCallable<ListContextsRequest,ContextsClient.ListContextsPagedResponse> listContextsPagedCallable()
listContextsPagedCallable
in class ContextsStub
public UnaryCallable<GetContextRequest,Context> getContextCallable()
getContextCallable
in class ContextsStub
public UnaryCallable<CreateContextRequest,Context> createContextCallable()
createContextCallable
in class ContextsStub
public UnaryCallable<UpdateContextRequest,Context> updateContextCallable()
updateContextCallable
in class ContextsStub
public UnaryCallable<DeleteContextRequest,Empty> deleteContextCallable()
deleteContextCallable
in class ContextsStub
public UnaryCallable<DeleteAllContextsRequest,Empty> deleteAllContextsCallable()
deleteAllContextsCallable
in class ContextsStub
public UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
listLocationsCallable
in class ContextsStub
public UnaryCallable<com.google.cloud.location.ListLocationsRequest,ContextsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
listLocationsPagedCallable
in class ContextsStub
public UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
getLocationCallable
in class ContextsStub
public final void close()
close
in interface AutoCloseable
close
in class ContextsStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2022 Google LLC. All rights reserved.