Class HttpJsonStorageInsightsStub
- java.lang.Object
-
- com.google.cloud.storageinsights.v1.stub.StorageInsightsStub
-
- com.google.cloud.storageinsights.v1.stub.HttpJsonStorageInsightsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonStorageInsightsStub extends StorageInsightsStub
REST 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 protected
HttpJsonStorageInsightsStub(StorageInsightsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonStorageInsightsStub, using the given settings.protected
HttpJsonStorageInsightsStub(StorageInsightsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonStorageInsightsStub, 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 HttpJsonStorageInsightsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonStorageInsightsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonStorageInsightsStub
create(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()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
com.google.api.gax.rpc.UnaryCallable<GetReportConfigRequest,ReportConfig>
getReportConfigCallable()
com.google.api.gax.rpc.UnaryCallable<GetReportDetailRequest,ReportDetail>
getReportDetailCallable()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<UpdateReportConfigRequest,ReportConfig>
updateReportConfigCallable()
-
-
-
Constructor Detail
-
HttpJsonStorageInsightsStub
protected HttpJsonStorageInsightsStub(StorageInsightsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonStorageInsightsStub, 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
-
HttpJsonStorageInsightsStub
protected HttpJsonStorageInsightsStub(StorageInsightsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonStorageInsightsStub, 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 HttpJsonStorageInsightsStub create(StorageInsightsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonStorageInsightsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonStorageInsightsStub 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()
-
listReportConfigsCallable
public com.google.api.gax.rpc.UnaryCallable<ListReportConfigsRequest,ListReportConfigsResponse> listReportConfigsCallable()
- Overrides:
listReportConfigsCallable
in classStorageInsightsStub
-
listReportConfigsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReportConfigsRequest,StorageInsightsClient.ListReportConfigsPagedResponse> listReportConfigsPagedCallable()
- Overrides:
listReportConfigsPagedCallable
in classStorageInsightsStub
-
getReportConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetReportConfigRequest,ReportConfig> getReportConfigCallable()
- Overrides:
getReportConfigCallable
in classStorageInsightsStub
-
createReportConfigCallable
public com.google.api.gax.rpc.UnaryCallable<CreateReportConfigRequest,ReportConfig> createReportConfigCallable()
- Overrides:
createReportConfigCallable
in classStorageInsightsStub
-
updateReportConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateReportConfigRequest,ReportConfig> updateReportConfigCallable()
- Overrides:
updateReportConfigCallable
in classStorageInsightsStub
-
deleteReportConfigCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteReportConfigRequest,com.google.protobuf.Empty> deleteReportConfigCallable()
- Overrides:
deleteReportConfigCallable
in classStorageInsightsStub
-
listReportDetailsCallable
public com.google.api.gax.rpc.UnaryCallable<ListReportDetailsRequest,ListReportDetailsResponse> listReportDetailsCallable()
- Overrides:
listReportDetailsCallable
in classStorageInsightsStub
-
listReportDetailsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReportDetailsRequest,StorageInsightsClient.ListReportDetailsPagedResponse> listReportDetailsPagedCallable()
- Overrides:
listReportDetailsPagedCallable
in classStorageInsightsStub
-
getReportDetailCallable
public com.google.api.gax.rpc.UnaryCallable<GetReportDetailRequest,ReportDetail> getReportDetailCallable()
- Overrides:
getReportDetailCallable
in classStorageInsightsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classStorageInsightsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,StorageInsightsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classStorageInsightsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classStorageInsightsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-