Class GrpcStorageInsightsStub
- java.lang.Object
-
- com.google.cloud.storageinsights.v1.stub.StorageInsightsStub
-
- com.google.cloud.storageinsights.v1.stub.GrpcStorageInsightsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcStorageInsightsStub extends StorageInsightsStub
gRPC stub implementation for the StorageInsights service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcStorageInsightsStub(StorageInsightsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcStorageInsightsStub, using the given settings.protectedGrpcStorageInsightsStub(StorageInsightsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcStorageInsightsStub, 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 GrpcStorageInsightsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcStorageInsightsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcStorageInsightsStubcreate(StorageInsightsStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateReportConfigRequest,ReportConfig>createReportConfigCallable()com.google.api.gax.rpc.UnaryCallable<DeleteReportConfigRequest,com.google.protobuf.Empty>deleteReportConfigCallable()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<GetReportConfigRequest,ReportConfig>getReportConfigCallable()com.google.api.gax.rpc.UnaryCallable<GetReportDetailRequest,ReportDetail>getReportDetailCallable()booleanisShutdown()booleanisTerminated()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,StorageInsightsClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListReportConfigsRequest,ListReportConfigsResponse>listReportConfigsCallable()com.google.api.gax.rpc.UnaryCallable<ListReportConfigsRequest,StorageInsightsClient.ListReportConfigsPagedResponse>listReportConfigsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListReportDetailsRequest,ListReportDetailsResponse>listReportDetailsCallable()com.google.api.gax.rpc.UnaryCallable<ListReportDetailsRequest,StorageInsightsClient.ListReportDetailsPagedResponse>listReportDetailsPagedCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<UpdateReportConfigRequest,ReportConfig>updateReportConfigCallable()
-
-
-
Constructor Detail
-
GrpcStorageInsightsStub
protected GrpcStorageInsightsStub(StorageInsightsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcStorageInsightsStub, 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
-
GrpcStorageInsightsStub
protected GrpcStorageInsightsStub(StorageInsightsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcStorageInsightsStub, 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 GrpcStorageInsightsStub create(StorageInsightsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcStorageInsightsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcStorageInsightsStub 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()
-
listReportConfigsCallable
public com.google.api.gax.rpc.UnaryCallable<ListReportConfigsRequest,ListReportConfigsResponse> listReportConfigsCallable()
- Overrides:
listReportConfigsCallablein classStorageInsightsStub
-
listReportConfigsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReportConfigsRequest,StorageInsightsClient.ListReportConfigsPagedResponse> listReportConfigsPagedCallable()
- Overrides:
listReportConfigsPagedCallablein classStorageInsightsStub
-
getReportConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetReportConfigRequest,ReportConfig> getReportConfigCallable()
- Overrides:
getReportConfigCallablein classStorageInsightsStub
-
createReportConfigCallable
public com.google.api.gax.rpc.UnaryCallable<CreateReportConfigRequest,ReportConfig> createReportConfigCallable()
- Overrides:
createReportConfigCallablein classStorageInsightsStub
-
updateReportConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateReportConfigRequest,ReportConfig> updateReportConfigCallable()
- Overrides:
updateReportConfigCallablein classStorageInsightsStub
-
deleteReportConfigCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteReportConfigRequest,com.google.protobuf.Empty> deleteReportConfigCallable()
- Overrides:
deleteReportConfigCallablein classStorageInsightsStub
-
listReportDetailsCallable
public com.google.api.gax.rpc.UnaryCallable<ListReportDetailsRequest,ListReportDetailsResponse> listReportDetailsCallable()
- Overrides:
listReportDetailsCallablein classStorageInsightsStub
-
listReportDetailsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReportDetailsRequest,StorageInsightsClient.ListReportDetailsPagedResponse> listReportDetailsPagedCallable()
- Overrides:
listReportDetailsPagedCallablein classStorageInsightsStub
-
getReportDetailCallable
public com.google.api.gax.rpc.UnaryCallable<GetReportDetailRequest,ReportDetail> getReportDetailCallable()
- Overrides:
getReportDetailCallablein classStorageInsightsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classStorageInsightsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,StorageInsightsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classStorageInsightsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classStorageInsightsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classStorageInsightsStub
-
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
-
-