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 protectedGrpcMetadataServiceStub(MetadataServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcMetadataServiceStub, using the given settings.protectedGrpcMetadataServiceStub(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 booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcMetadataServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcMetadataServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcMetadataServiceStubcreate(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.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetPartitionRequest,Partition>getPartitionCallable()booleanisShutdown()booleanisTerminated()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()voidshutdown()voidshutdownNow()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:
createEntityCallablein classMetadataServiceStub
-
updateEntityCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateEntityRequest,Entity> updateEntityCallable()
- Overrides:
updateEntityCallablein classMetadataServiceStub
-
deleteEntityCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteEntityRequest,com.google.protobuf.Empty> deleteEntityCallable()
- Overrides:
deleteEntityCallablein classMetadataServiceStub
-
getEntityCallable
public com.google.api.gax.rpc.UnaryCallable<GetEntityRequest,Entity> getEntityCallable()
- Overrides:
getEntityCallablein classMetadataServiceStub
-
listEntitiesCallable
public com.google.api.gax.rpc.UnaryCallable<ListEntitiesRequest,ListEntitiesResponse> listEntitiesCallable()
- Overrides:
listEntitiesCallablein classMetadataServiceStub
-
listEntitiesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListEntitiesRequest,MetadataServiceClient.ListEntitiesPagedResponse> listEntitiesPagedCallable()
- Overrides:
listEntitiesPagedCallablein classMetadataServiceStub
-
createPartitionCallable
public com.google.api.gax.rpc.UnaryCallable<CreatePartitionRequest,Partition> createPartitionCallable()
- Overrides:
createPartitionCallablein classMetadataServiceStub
-
deletePartitionCallable
public com.google.api.gax.rpc.UnaryCallable<DeletePartitionRequest,com.google.protobuf.Empty> deletePartitionCallable()
- Overrides:
deletePartitionCallablein classMetadataServiceStub
-
getPartitionCallable
public com.google.api.gax.rpc.UnaryCallable<GetPartitionRequest,Partition> getPartitionCallable()
- Overrides:
getPartitionCallablein classMetadataServiceStub
-
listPartitionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListPartitionsRequest,ListPartitionsResponse> listPartitionsCallable()
- Overrides:
listPartitionsCallablein classMetadataServiceStub
-
listPartitionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListPartitionsRequest,MetadataServiceClient.ListPartitionsPagedResponse> listPartitionsPagedCallable()
- Overrides:
listPartitionsPagedCallablein classMetadataServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classMetadataServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,MetadataServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classMetadataServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classMetadataServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-