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 protected
HttpJsonMetadataServiceStub(MetadataServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonMetadataServiceStub, using the given settings.protected
HttpJsonMetadataServiceStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonMetadataServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonMetadataServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonMetadataServiceStub
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()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
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
-
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:
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
-
-