Class GrpcMemoryBankServiceStub (3.68.0)

public class GrpcMemoryBankServiceStub extends MemoryBankServiceStub

gRPC stub implementation for the MemoryBankService service API.

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

Inheritance

java.lang.Object > MemoryBankServiceStub > GrpcMemoryBankServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(MemoryBankServiceStubSettings settings)

public static final GrpcMemoryBankServiceStub create(MemoryBankServiceStubSettings settings)
Parameter
Name Description
settings MemoryBankServiceStubSettings
Returns
Type Description
GrpcMemoryBankServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcMemoryBankServiceStub(MemoryBankServiceStubSettings settings, ClientContext clientContext)

protected GrpcMemoryBankServiceStub(MemoryBankServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcMemoryBankServiceStub, 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 MemoryBankServiceStubSettings
clientContext ClientContext

GrpcMemoryBankServiceStub(MemoryBankServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcMemoryBankServiceStub(MemoryBankServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcMemoryBankServiceStub, 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 MemoryBankServiceStubSettings
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

createMemoryCallable()

public UnaryCallable<CreateMemoryRequest,Operation> createMemoryCallable()
Returns
Type Description
UnaryCallable<CreateMemoryRequest,Operation>
Overrides

createMemoryOperationCallable()

public OperationCallable<CreateMemoryRequest,Memory,CreateMemoryOperationMetadata> createMemoryOperationCallable()
Returns
Type Description
OperationCallable<CreateMemoryRequest,Memory,CreateMemoryOperationMetadata>
Overrides

deleteMemoryCallable()

public UnaryCallable<DeleteMemoryRequest,Operation> deleteMemoryCallable()
Returns
Type Description
UnaryCallable<DeleteMemoryRequest,Operation>
Overrides

deleteMemoryOperationCallable()

public OperationCallable<DeleteMemoryRequest,Empty,DeleteMemoryOperationMetadata> deleteMemoryOperationCallable()
Returns
Type Description
OperationCallable<DeleteMemoryRequest,Empty,DeleteMemoryOperationMetadata>
Overrides

generateMemoriesCallable()

public UnaryCallable<GenerateMemoriesRequest,Operation> generateMemoriesCallable()
Returns
Type Description
UnaryCallable<GenerateMemoriesRequest,Operation>
Overrides

generateMemoriesOperationCallable()

public OperationCallable<GenerateMemoriesRequest,GenerateMemoriesResponse,GenerateMemoriesOperationMetadata> generateMemoriesOperationCallable()
Returns
Type Description
OperationCallable<GenerateMemoriesRequest,GenerateMemoriesResponse,GenerateMemoriesOperationMetadata>
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

getMemoryCallable()

public UnaryCallable<GetMemoryRequest,Memory> getMemoryCallable()
Returns
Type Description
UnaryCallable<GetMemoryRequest,Memory>
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

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,MemoryBankServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listMemoriesCallable()

public UnaryCallable<ListMemoriesRequest,ListMemoriesResponse> listMemoriesCallable()
Returns
Type Description
UnaryCallable<ListMemoriesRequest,ListMemoriesResponse>
Overrides

listMemoriesPagedCallable()

public UnaryCallable<ListMemoriesRequest,MemoryBankServiceClient.ListMemoriesPagedResponse> listMemoriesPagedCallable()
Returns
Type Description
UnaryCallable<ListMemoriesRequest,ListMemoriesPagedResponse>
Overrides

retrieveMemoriesCallable()

public UnaryCallable<RetrieveMemoriesRequest,RetrieveMemoriesResponse> retrieveMemoriesCallable()
Returns
Type Description
UnaryCallable<RetrieveMemoriesRequest,RetrieveMemoriesResponse>
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

updateMemoryCallable()

public UnaryCallable<UpdateMemoryRequest,Operation> updateMemoryCallable()
Returns
Type Description
UnaryCallable<UpdateMemoryRequest,Operation>
Overrides

updateMemoryOperationCallable()

public OperationCallable<UpdateMemoryRequest,Memory,UpdateMemoryOperationMetadata> updateMemoryOperationCallable()
Returns
Type Description
OperationCallable<UpdateMemoryRequest,Memory,UpdateMemoryOperationMetadata>
Overrides