@BetaApi @Generated(value="by gapic-generator-java") public class GrpcExamplesStub extends ExamplesStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcExamplesStub(ExamplesStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcExamplesStub, using the given settings.
|
protected |
GrpcExamplesStub(ExamplesStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcExamplesStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcExamplesStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcExamplesStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) |
static GrpcExamplesStub |
create(ExamplesStubSettings settings) |
com.google.api.gax.rpc.UnaryCallable<CreateExampleRequest,Example> |
createExampleCallable() |
com.google.api.gax.rpc.UnaryCallable<DeleteExampleRequest,com.google.protobuf.Empty> |
deleteExampleCallable() |
com.google.api.gax.rpc.UnaryCallable<GetExampleRequest,Example> |
getExampleCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getLocationCallable() |
com.google.longrunning.stub.GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<ListExamplesRequest,ListExamplesResponse> |
listExamplesCallable() |
com.google.api.gax.rpc.UnaryCallable<ListExamplesRequest,ExamplesClient.ListExamplesPagedResponse> |
listExamplesPagedCallable() |
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,ExamplesClient.ListLocationsPagedResponse> |
listLocationsPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.rpc.UnaryCallable<UpdateExampleRequest,Example> |
updateExampleCallable() |
protected GrpcExamplesStub(ExamplesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected GrpcExamplesStub(ExamplesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcExamplesStub create(ExamplesStubSettings settings) throws IOException
IOExceptionpublic static final GrpcExamplesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcExamplesStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
public com.google.api.gax.rpc.UnaryCallable<CreateExampleRequest,Example> createExampleCallable()
createExampleCallable in class ExamplesStubpublic com.google.api.gax.rpc.UnaryCallable<DeleteExampleRequest,com.google.protobuf.Empty> deleteExampleCallable()
deleteExampleCallable in class ExamplesStubpublic com.google.api.gax.rpc.UnaryCallable<ListExamplesRequest,ListExamplesResponse> listExamplesCallable()
listExamplesCallable in class ExamplesStubpublic com.google.api.gax.rpc.UnaryCallable<ListExamplesRequest,ExamplesClient.ListExamplesPagedResponse> listExamplesPagedCallable()
listExamplesPagedCallable in class ExamplesStubpublic com.google.api.gax.rpc.UnaryCallable<GetExampleRequest,Example> getExampleCallable()
getExampleCallable in class ExamplesStubpublic com.google.api.gax.rpc.UnaryCallable<UpdateExampleRequest,Example> updateExampleCallable()
updateExampleCallable in class ExamplesStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
listLocationsCallable in class ExamplesStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ExamplesClient.ListLocationsPagedResponse> listLocationsPagedCallable()
listLocationsPagedCallable in class ExamplesStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
getLocationCallable in class ExamplesStubpublic final void close()
close in interface AutoCloseableclose in class ExamplesStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2025 Google LLC. All rights reserved.