Class GrpcMetadataServiceStub (1.31.0)

public class GrpcMetadataServiceStub extends MetadataServiceStub

gRPC stub implementation for the MetadataService service API.

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

Inheritance

java.lang.Object > MetadataServiceStub > GrpcMetadataServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcMetadataServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcMetadataServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcMetadataServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcMetadataServiceStub
Exceptions
TypeDescription
IOException

create(MetadataServiceStubSettings settings)

public static final GrpcMetadataServiceStub create(MetadataServiceStubSettings settings)
Parameter
NameDescription
settingsMetadataServiceStubSettings
Returns
TypeDescription
GrpcMetadataServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcMetadataServiceStub(MetadataServiceStubSettings settings, ClientContext clientContext)

protected GrpcMetadataServiceStub(MetadataServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcMetadataServiceStub, 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
NameDescription
settingsMetadataServiceStubSettings
clientContextClientContext

GrpcMetadataServiceStub(MetadataServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcMetadataServiceStub(MetadataServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcMetadataServiceStub, 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
NameDescription
settingsMetadataServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createEntityCallable()

public UnaryCallable<CreateEntityRequest,Entity> createEntityCallable()
Returns
TypeDescription
UnaryCallable<CreateEntityRequest,Entity>
Overrides

createPartitionCallable()

public UnaryCallable<CreatePartitionRequest,Partition> createPartitionCallable()
Returns
TypeDescription
UnaryCallable<CreatePartitionRequest,Partition>
Overrides

deleteEntityCallable()

public UnaryCallable<DeleteEntityRequest,Empty> deleteEntityCallable()
Returns
TypeDescription
UnaryCallable<DeleteEntityRequest,Empty>
Overrides

deletePartitionCallable()

public UnaryCallable<DeletePartitionRequest,Empty> deletePartitionCallable()
Returns
TypeDescription
UnaryCallable<DeletePartitionRequest,Empty>
Overrides

getEntityCallable()

public UnaryCallable<GetEntityRequest,Entity> getEntityCallable()
Returns
TypeDescription
UnaryCallable<GetEntityRequest,Entity>
Overrides

getLocationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getPartitionCallable()

public UnaryCallable<GetPartitionRequest,Partition> getPartitionCallable()
Returns
TypeDescription
UnaryCallable<GetPartitionRequest,Partition>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listEntitiesCallable()

public UnaryCallable<ListEntitiesRequest,ListEntitiesResponse> listEntitiesCallable()
Returns
TypeDescription
UnaryCallable<ListEntitiesRequest,ListEntitiesResponse>
Overrides

listEntitiesPagedCallable()

public UnaryCallable<ListEntitiesRequest,MetadataServiceClient.ListEntitiesPagedResponse> listEntitiesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListEntitiesRequest,ListEntitiesPagedResponse>
Overrides

listLocationsCallable()

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

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,MetadataServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listPartitionsCallable()

public UnaryCallable<ListPartitionsRequest,ListPartitionsResponse> listPartitionsCallable()
Returns
TypeDescription
UnaryCallable<ListPartitionsRequest,ListPartitionsResponse>
Overrides

listPartitionsPagedCallable()

public UnaryCallable<ListPartitionsRequest,MetadataServiceClient.ListPartitionsPagedResponse> listPartitionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPartitionsRequest,ListPartitionsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateEntityCallable()

public UnaryCallable<UpdateEntityRequest,Entity> updateEntityCallable()
Returns
TypeDescription
UnaryCallable<UpdateEntityRequest,Entity>
Overrides