Class GrpcExampleStoreServiceStub (3.64.0)

public class GrpcExampleStoreServiceStub extends ExampleStoreServiceStub

gRPC stub implementation for the ExampleStoreService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ExampleStoreServiceStub > GrpcExampleStoreServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcExampleStoreServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcExampleStoreServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcExampleStoreServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcExampleStoreServiceStub
Exceptions
Type Description
IOException

create(ExampleStoreServiceStubSettings settings)

public static final GrpcExampleStoreServiceStub create(ExampleStoreServiceStubSettings settings)
Parameter
Name Description
settings ExampleStoreServiceStubSettings
Returns
Type Description
GrpcExampleStoreServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcExampleStoreServiceStub(ExampleStoreServiceStubSettings settings, ClientContext clientContext)

protected GrpcExampleStoreServiceStub(ExampleStoreServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcExampleStoreServiceStub, 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.

Parameters
Name Description
settings ExampleStoreServiceStubSettings
clientContext ClientContext

GrpcExampleStoreServiceStub(ExampleStoreServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcExampleStoreServiceStub(ExampleStoreServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcExampleStoreServiceStub, 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.

Parameters
Name Description
settings ExampleStoreServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createExampleStoreCallable()

public UnaryCallable<CreateExampleStoreRequest,Operation> createExampleStoreCallable()
Returns
Type Description
UnaryCallable<CreateExampleStoreRequest,Operation>
Overrides

createExampleStoreOperationCallable()

public OperationCallable<CreateExampleStoreRequest,ExampleStore,CreateExampleStoreOperationMetadata> createExampleStoreOperationCallable()
Returns
Type Description
OperationCallable<CreateExampleStoreRequest,ExampleStore,CreateExampleStoreOperationMetadata>
Overrides

deleteExampleStoreCallable()

public UnaryCallable<DeleteExampleStoreRequest,Operation> deleteExampleStoreCallable()
Returns
Type Description
UnaryCallable<DeleteExampleStoreRequest,Operation>
Overrides

deleteExampleStoreOperationCallable()

public OperationCallable<DeleteExampleStoreRequest,Empty,DeleteExampleStoreOperationMetadata> deleteExampleStoreOperationCallable()
Returns
Type Description
OperationCallable<DeleteExampleStoreRequest,Empty,DeleteExampleStoreOperationMetadata>
Overrides

fetchExamplesCallable()

public UnaryCallable<FetchExamplesRequest,FetchExamplesResponse> fetchExamplesCallable()
Returns
Type Description
UnaryCallable<FetchExamplesRequest,FetchExamplesResponse>
Overrides

fetchExamplesPagedCallable()

public UnaryCallable<FetchExamplesRequest,ExampleStoreServiceClient.FetchExamplesPagedResponse> fetchExamplesPagedCallable()
Returns
Type Description
UnaryCallable<FetchExamplesRequest,FetchExamplesPagedResponse>
Overrides

getExampleStoreCallable()

public UnaryCallable<GetExampleStoreRequest,ExampleStore> getExampleStoreCallable()
Returns
Type Description
UnaryCallable<GetExampleStoreRequest,ExampleStore>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listExampleStoresCallable()

public UnaryCallable<ListExampleStoresRequest,ListExampleStoresResponse> listExampleStoresCallable()
Returns
Type Description
UnaryCallable<ListExampleStoresRequest,ListExampleStoresResponse>
Overrides

listExampleStoresPagedCallable()

public UnaryCallable<ListExampleStoresRequest,ExampleStoreServiceClient.ListExampleStoresPagedResponse> listExampleStoresPagedCallable()
Returns
Type Description
UnaryCallable<ListExampleStoresRequest,ListExampleStoresPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ExampleStoreServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

removeExamplesCallable()

public UnaryCallable<RemoveExamplesRequest,RemoveExamplesResponse> removeExamplesCallable()
Returns
Type Description
UnaryCallable<RemoveExamplesRequest,RemoveExamplesResponse>
Overrides

searchExamplesCallable()

public UnaryCallable<SearchExamplesRequest,SearchExamplesResponse> searchExamplesCallable()
Returns
Type Description
UnaryCallable<SearchExamplesRequest,SearchExamplesResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateExampleStoreCallable()

public UnaryCallable<UpdateExampleStoreRequest,Operation> updateExampleStoreCallable()
Returns
Type Description
UnaryCallable<UpdateExampleStoreRequest,Operation>
Overrides

updateExampleStoreOperationCallable()

public OperationCallable<UpdateExampleStoreRequest,ExampleStore,UpdateExampleStoreOperationMetadata> updateExampleStoreOperationCallable()
Returns
Type Description
OperationCallable<UpdateExampleStoreRequest,ExampleStore,UpdateExampleStoreOperationMetadata>
Overrides

upsertExamplesCallable()

public UnaryCallable<UpsertExamplesRequest,UpsertExamplesResponse> upsertExamplesCallable()
Returns
Type Description
UnaryCallable<UpsertExamplesRequest,UpsertExamplesResponse>
Overrides