Class HttpJsonMetadataServiceStub
- java.lang.Object
-
- com.google.cloud.dataplex.v1.stub.MetadataServiceStub
-
- com.google.cloud.dataplex.v1.stub.HttpJsonMetadataServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonMetadataServiceStub extends MetadataServiceStub
REST 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 protectedHttpJsonMetadataServiceStub(MetadataServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonMetadataServiceStub, using the given settings.protectedHttpJsonMetadataServiceStub(MetadataServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonMetadataServiceStub, 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 HttpJsonMetadataServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonMetadataServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonMetadataServiceStubcreate(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()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()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
-
HttpJsonMetadataServiceStub
protected HttpJsonMetadataServiceStub(MetadataServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonMetadataServiceStub, 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
-
HttpJsonMetadataServiceStub
protected HttpJsonMetadataServiceStub(MetadataServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonMetadataServiceStub, 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 HttpJsonMetadataServiceStub create(MetadataServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonMetadataServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonMetadataServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
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
-
-