Class GrpcMetadataServiceStub
- java.lang.Object
-
- com.google.cloud.dataplex.v1.stub.MetadataServiceStub
-
- com.google.cloud.dataplex.v1.stub.GrpcMetadataServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcMetadataServiceStub(MetadataServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcMetadataServiceStub, using the given settings.protected
GrpcMetadataServiceStub(MetadataServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcMetadataServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcMetadataServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcMetadataServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcMetadataServiceStub
create(MetadataServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateEntityRequest,Entity>
createEntityCallable()
com.google.api.gax.rpc.UnaryCallable<CreatePartitionRequest,Partition>
createPartitionCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteEntityRequest,com.google.protobuf.Empty>
deleteEntityCallable()
com.google.api.gax.rpc.UnaryCallable<DeletePartitionRequest,com.google.protobuf.Empty>
deletePartitionCallable()
com.google.api.gax.rpc.UnaryCallable<GetEntityRequest,Entity>
getEntityCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetPartitionRequest,Partition>
getPartitionCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListEntitiesRequest,ListEntitiesResponse>
listEntitiesCallable()
com.google.api.gax.rpc.UnaryCallable<ListEntitiesRequest,MetadataServiceClient.ListEntitiesPagedResponse>
listEntitiesPagedCallable()
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,MetadataServiceClient.ListLocationsPagedResponse>
listLocationsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListPartitionsRequest,ListPartitionsResponse>
listPartitionsCallable()
com.google.api.gax.rpc.UnaryCallable<ListPartitionsRequest,MetadataServiceClient.ListPartitionsPagedResponse>
listPartitionsPagedCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<UpdateEntityRequest,Entity>
updateEntityCallable()
-
-
-
Constructor Detail
-
GrpcMetadataServiceStub
protected GrpcMetadataServiceStub(MetadataServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
GrpcMetadataServiceStub
protected GrpcMetadataServiceStub(MetadataServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcMetadataServiceStub create(MetadataServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcMetadataServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcMetadataServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
createEntityCallable
public com.google.api.gax.rpc.UnaryCallable<CreateEntityRequest,Entity> createEntityCallable()
- Overrides:
createEntityCallable
in classMetadataServiceStub
-
updateEntityCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateEntityRequest,Entity> updateEntityCallable()
- Overrides:
updateEntityCallable
in classMetadataServiceStub
-
deleteEntityCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteEntityRequest,com.google.protobuf.Empty> deleteEntityCallable()
- Overrides:
deleteEntityCallable
in classMetadataServiceStub
-
getEntityCallable
public com.google.api.gax.rpc.UnaryCallable<GetEntityRequest,Entity> getEntityCallable()
- Overrides:
getEntityCallable
in classMetadataServiceStub
-
listEntitiesCallable
public com.google.api.gax.rpc.UnaryCallable<ListEntitiesRequest,ListEntitiesResponse> listEntitiesCallable()
- Overrides:
listEntitiesCallable
in classMetadataServiceStub
-
listEntitiesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListEntitiesRequest,MetadataServiceClient.ListEntitiesPagedResponse> listEntitiesPagedCallable()
- Overrides:
listEntitiesPagedCallable
in classMetadataServiceStub
-
createPartitionCallable
public com.google.api.gax.rpc.UnaryCallable<CreatePartitionRequest,Partition> createPartitionCallable()
- Overrides:
createPartitionCallable
in classMetadataServiceStub
-
deletePartitionCallable
public com.google.api.gax.rpc.UnaryCallable<DeletePartitionRequest,com.google.protobuf.Empty> deletePartitionCallable()
- Overrides:
deletePartitionCallable
in classMetadataServiceStub
-
getPartitionCallable
public com.google.api.gax.rpc.UnaryCallable<GetPartitionRequest,Partition> getPartitionCallable()
- Overrides:
getPartitionCallable
in classMetadataServiceStub
-
listPartitionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListPartitionsRequest,ListPartitionsResponse> listPartitionsCallable()
- Overrides:
listPartitionsCallable
in classMetadataServiceStub
-
listPartitionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListPartitionsRequest,MetadataServiceClient.ListPartitionsPagedResponse> listPartitionsPagedCallable()
- Overrides:
listPartitionsPagedCallable
in classMetadataServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classMetadataServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,MetadataServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classMetadataServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classMetadataServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classMetadataServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-