Class GrpcDataprocMetastoreFederationStub
- java.lang.Object
-
- com.google.cloud.metastore.v1beta.stub.DataprocMetastoreFederationStub
-
- com.google.cloud.metastore.v1beta.stub.GrpcDataprocMetastoreFederationStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcDataprocMetastoreFederationStub extends DataprocMetastoreFederationStub
gRPC stub implementation for the DataprocMetastoreFederation service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcDataprocMetastoreFederationStub(DataprocMetastoreFederationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcDataprocMetastoreFederationStub, using the given settings.protected
GrpcDataprocMetastoreFederationStub(DataprocMetastoreFederationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcDataprocMetastoreFederationStub, 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 GrpcDataprocMetastoreFederationStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcDataprocMetastoreFederationStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcDataprocMetastoreFederationStub
create(DataprocMetastoreFederationStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateFederationRequest,com.google.longrunning.Operation>
createFederationCallable()
com.google.api.gax.rpc.OperationCallable<CreateFederationRequest,Federation,OperationMetadata>
createFederationOperationCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteFederationRequest,com.google.longrunning.Operation>
deleteFederationCallable()
com.google.api.gax.rpc.OperationCallable<DeleteFederationRequest,com.google.protobuf.Empty,OperationMetadata>
deleteFederationOperationCallable()
com.google.api.gax.rpc.UnaryCallable<GetFederationRequest,Federation>
getFederationCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicyCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListFederationsRequest,ListFederationsResponse>
listFederationsCallable()
com.google.api.gax.rpc.UnaryCallable<ListFederationsRequest,DataprocMetastoreFederationClient.ListFederationsPagedResponse>
listFederationsPagedCallable()
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,DataprocMetastoreFederationClient.ListLocationsPagedResponse>
listLocationsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicyCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateFederationRequest,com.google.longrunning.Operation>
updateFederationCallable()
com.google.api.gax.rpc.OperationCallable<UpdateFederationRequest,Federation,OperationMetadata>
updateFederationOperationCallable()
-
Methods inherited from class com.google.cloud.metastore.v1beta.stub.DataprocMetastoreFederationStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcDataprocMetastoreFederationStub
protected GrpcDataprocMetastoreFederationStub(DataprocMetastoreFederationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcDataprocMetastoreFederationStub, 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
-
GrpcDataprocMetastoreFederationStub
protected GrpcDataprocMetastoreFederationStub(DataprocMetastoreFederationStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcDataprocMetastoreFederationStub, 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 GrpcDataprocMetastoreFederationStub create(DataprocMetastoreFederationStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcDataprocMetastoreFederationStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcDataprocMetastoreFederationStub 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()
- Overrides:
getOperationsStub
in classDataprocMetastoreFederationStub
-
listFederationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListFederationsRequest,ListFederationsResponse> listFederationsCallable()
- Overrides:
listFederationsCallable
in classDataprocMetastoreFederationStub
-
listFederationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFederationsRequest,DataprocMetastoreFederationClient.ListFederationsPagedResponse> listFederationsPagedCallable()
- Overrides:
listFederationsPagedCallable
in classDataprocMetastoreFederationStub
-
getFederationCallable
public com.google.api.gax.rpc.UnaryCallable<GetFederationRequest,Federation> getFederationCallable()
- Overrides:
getFederationCallable
in classDataprocMetastoreFederationStub
-
createFederationCallable
public com.google.api.gax.rpc.UnaryCallable<CreateFederationRequest,com.google.longrunning.Operation> createFederationCallable()
- Overrides:
createFederationCallable
in classDataprocMetastoreFederationStub
-
createFederationOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateFederationRequest,Federation,OperationMetadata> createFederationOperationCallable()
- Overrides:
createFederationOperationCallable
in classDataprocMetastoreFederationStub
-
updateFederationCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateFederationRequest,com.google.longrunning.Operation> updateFederationCallable()
- Overrides:
updateFederationCallable
in classDataprocMetastoreFederationStub
-
updateFederationOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateFederationRequest,Federation,OperationMetadata> updateFederationOperationCallable()
- Overrides:
updateFederationOperationCallable
in classDataprocMetastoreFederationStub
-
deleteFederationCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteFederationRequest,com.google.longrunning.Operation> deleteFederationCallable()
- Overrides:
deleteFederationCallable
in classDataprocMetastoreFederationStub
-
deleteFederationOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteFederationRequest,com.google.protobuf.Empty,OperationMetadata> deleteFederationOperationCallable()
- Overrides:
deleteFederationOperationCallable
in classDataprocMetastoreFederationStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classDataprocMetastoreFederationStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,DataprocMetastoreFederationClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classDataprocMetastoreFederationStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classDataprocMetastoreFederationStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classDataprocMetastoreFederationStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classDataprocMetastoreFederationStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classDataprocMetastoreFederationStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classDataprocMetastoreFederationStub
-
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
-
-