Package com.google.cloud.asset.v1.stub
Class AssetServiceStubSettings
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings<AssetServiceStubSettings>
-
- com.google.cloud.asset.v1.stub.AssetServiceStubSettings
-
@Generated("by gapic-generator-java") public class AssetServiceStubSettings extends com.google.api.gax.rpc.StubSettings<AssetServiceStubSettings>
Settings class to configure an instance ofAssetServiceStub
.The default instance has everything set to sensible defaults:
- The default service address (cloudasset.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.
For example, to set the total timeout of batchGetAssetsHistory to 30 seconds:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library AssetServiceStubSettings.Builder assetServiceSettingsBuilder = AssetServiceStubSettings.newBuilder(); assetServiceSettingsBuilder .batchGetAssetsHistorySettings() .setRetrySettings( assetServiceSettingsBuilder .batchGetAssetsHistorySettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); AssetServiceStubSettings assetServiceSettings = assetServiceSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AssetServiceStubSettings.Builder
Builder for AssetServiceStubSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AssetServiceStubSettings(AssetServiceStubSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.OperationCallSettings<AnalyzeIamPolicyLongrunningRequest,AnalyzeIamPolicyLongrunningResponse,AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationSettings()
Returns the object with the settings used for calls to analyzeIamPolicyLongrunning.com.google.api.gax.rpc.UnaryCallSettings<AnalyzeIamPolicyLongrunningRequest,com.google.longrunning.Operation>
analyzeIamPolicyLongrunningSettings()
Returns the object with the settings used for calls to analyzeIamPolicyLongrunning.com.google.api.gax.rpc.UnaryCallSettings<AnalyzeIamPolicyRequest,AnalyzeIamPolicyResponse>
analyzeIamPolicySettings()
Returns the object with the settings used for calls to analyzeIamPolicy.com.google.api.gax.rpc.UnaryCallSettings<AnalyzeMoveRequest,AnalyzeMoveResponse>
analyzeMoveSettings()
Returns the object with the settings used for calls to analyzeMove.com.google.api.gax.rpc.PagedCallSettings<AnalyzeOrgPoliciesRequest,AnalyzeOrgPoliciesResponse,AssetServiceClient.AnalyzeOrgPoliciesPagedResponse>
analyzeOrgPoliciesSettings()
Returns the object with the settings used for calls to analyzeOrgPolicies.com.google.api.gax.rpc.PagedCallSettings<AnalyzeOrgPolicyGovernedAssetsRequest,AnalyzeOrgPolicyGovernedAssetsResponse,AssetServiceClient.AnalyzeOrgPolicyGovernedAssetsPagedResponse>
analyzeOrgPolicyGovernedAssetsSettings()
Returns the object with the settings used for calls to analyzeOrgPolicyGovernedAssets.com.google.api.gax.rpc.PagedCallSettings<AnalyzeOrgPolicyGovernedContainersRequest,AnalyzeOrgPolicyGovernedContainersResponse,AssetServiceClient.AnalyzeOrgPolicyGovernedContainersPagedResponse>
analyzeOrgPolicyGovernedContainersSettings()
Returns the object with the settings used for calls to analyzeOrgPolicyGovernedContainers.com.google.api.gax.rpc.UnaryCallSettings<BatchGetAssetsHistoryRequest,BatchGetAssetsHistoryResponse>
batchGetAssetsHistorySettings()
Returns the object with the settings used for calls to batchGetAssetsHistory.com.google.api.gax.rpc.UnaryCallSettings<BatchGetEffectiveIamPoliciesRequest,BatchGetEffectiveIamPoliciesResponse>
batchGetEffectiveIamPoliciesSettings()
Returns the object with the settings used for calls to batchGetEffectiveIamPolicies.com.google.api.gax.rpc.UnaryCallSettings<CreateFeedRequest,Feed>
createFeedSettings()
Returns the object with the settings used for calls to createFeed.com.google.api.gax.rpc.UnaryCallSettings<CreateSavedQueryRequest,SavedQuery>
createSavedQuerySettings()
Returns the object with the settings used for calls to createSavedQuery.AssetServiceStub
createStub()
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultApiClientHeaderProviderBuilder()
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultGrpcApiClientHeaderProviderBuilder()
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultHttpJsonApiClientHeaderProviderBuilder()
static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.UnaryCallSettings<DeleteFeedRequest,com.google.protobuf.Empty>
deleteFeedSettings()
Returns the object with the settings used for calls to deleteFeed.com.google.api.gax.rpc.UnaryCallSettings<DeleteSavedQueryRequest,com.google.protobuf.Empty>
deleteSavedQuerySettings()
Returns the object with the settings used for calls to deleteSavedQuery.com.google.api.gax.rpc.OperationCallSettings<ExportAssetsRequest,ExportAssetsResponse,ExportAssetsRequest>
exportAssetsOperationSettings()
Returns the object with the settings used for calls to exportAssets.com.google.api.gax.rpc.UnaryCallSettings<ExportAssetsRequest,com.google.longrunning.Operation>
exportAssetsSettings()
Returns the object with the settings used for calls to exportAssets.static String
getDefaultEndpoint()
Returns the default service endpoint.static String
getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetFeedRequest,Feed>
getFeedSettings()
Returns the object with the settings used for calls to getFeed.com.google.api.gax.rpc.UnaryCallSettings<GetSavedQueryRequest,SavedQuery>
getSavedQuerySettings()
Returns the object with the settings used for calls to getSavedQuery.com.google.api.gax.rpc.PagedCallSettings<ListAssetsRequest,ListAssetsResponse,AssetServiceClient.ListAssetsPagedResponse>
listAssetsSettings()
Returns the object with the settings used for calls to listAssets.com.google.api.gax.rpc.UnaryCallSettings<ListFeedsRequest,ListFeedsResponse>
listFeedsSettings()
Returns the object with the settings used for calls to listFeeds.com.google.api.gax.rpc.PagedCallSettings<ListSavedQueriesRequest,ListSavedQueriesResponse,AssetServiceClient.ListSavedQueriesPagedResponse>
listSavedQueriesSettings()
Returns the object with the settings used for calls to listSavedQueries.static AssetServiceStubSettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static AssetServiceStubSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static AssetServiceStubSettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.com.google.api.gax.rpc.UnaryCallSettings<QueryAssetsRequest,QueryAssetsResponse>
queryAssetsSettings()
Returns the object with the settings used for calls to queryAssets.com.google.api.gax.rpc.PagedCallSettings<SearchAllIamPoliciesRequest,SearchAllIamPoliciesResponse,AssetServiceClient.SearchAllIamPoliciesPagedResponse>
searchAllIamPoliciesSettings()
Returns the object with the settings used for calls to searchAllIamPolicies.com.google.api.gax.rpc.PagedCallSettings<SearchAllResourcesRequest,SearchAllResourcesResponse,AssetServiceClient.SearchAllResourcesPagedResponse>
searchAllResourcesSettings()
Returns the object with the settings used for calls to searchAllResources.AssetServiceStubSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.UnaryCallSettings<UpdateFeedRequest,Feed>
updateFeedSettings()
Returns the object with the settings used for calls to updateFeed.com.google.api.gax.rpc.UnaryCallSettings<UpdateSavedQueryRequest,SavedQuery>
updateSavedQuerySettings()
Returns the object with the settings used for calls to updateSavedQuery.-
Methods inherited from class com.google.api.gax.rpc.StubSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
AssetServiceStubSettings
protected AssetServiceStubSettings(AssetServiceStubSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
exportAssetsSettings
public com.google.api.gax.rpc.UnaryCallSettings<ExportAssetsRequest,com.google.longrunning.Operation> exportAssetsSettings()
Returns the object with the settings used for calls to exportAssets.
-
exportAssetsOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<ExportAssetsRequest,ExportAssetsResponse,ExportAssetsRequest> exportAssetsOperationSettings()
Returns the object with the settings used for calls to exportAssets.
-
listAssetsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListAssetsRequest,ListAssetsResponse,AssetServiceClient.ListAssetsPagedResponse> listAssetsSettings()
Returns the object with the settings used for calls to listAssets.
-
batchGetAssetsHistorySettings
public com.google.api.gax.rpc.UnaryCallSettings<BatchGetAssetsHistoryRequest,BatchGetAssetsHistoryResponse> batchGetAssetsHistorySettings()
Returns the object with the settings used for calls to batchGetAssetsHistory.
-
createFeedSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateFeedRequest,Feed> createFeedSettings()
Returns the object with the settings used for calls to createFeed.
-
getFeedSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetFeedRequest,Feed> getFeedSettings()
Returns the object with the settings used for calls to getFeed.
-
listFeedsSettings
public com.google.api.gax.rpc.UnaryCallSettings<ListFeedsRequest,ListFeedsResponse> listFeedsSettings()
Returns the object with the settings used for calls to listFeeds.
-
updateFeedSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateFeedRequest,Feed> updateFeedSettings()
Returns the object with the settings used for calls to updateFeed.
-
deleteFeedSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteFeedRequest,com.google.protobuf.Empty> deleteFeedSettings()
Returns the object with the settings used for calls to deleteFeed.
-
searchAllResourcesSettings
public com.google.api.gax.rpc.PagedCallSettings<SearchAllResourcesRequest,SearchAllResourcesResponse,AssetServiceClient.SearchAllResourcesPagedResponse> searchAllResourcesSettings()
Returns the object with the settings used for calls to searchAllResources.
-
searchAllIamPoliciesSettings
public com.google.api.gax.rpc.PagedCallSettings<SearchAllIamPoliciesRequest,SearchAllIamPoliciesResponse,AssetServiceClient.SearchAllIamPoliciesPagedResponse> searchAllIamPoliciesSettings()
Returns the object with the settings used for calls to searchAllIamPolicies.
-
analyzeIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<AnalyzeIamPolicyRequest,AnalyzeIamPolicyResponse> analyzeIamPolicySettings()
Returns the object with the settings used for calls to analyzeIamPolicy.
-
analyzeIamPolicyLongrunningSettings
public com.google.api.gax.rpc.UnaryCallSettings<AnalyzeIamPolicyLongrunningRequest,com.google.longrunning.Operation> analyzeIamPolicyLongrunningSettings()
Returns the object with the settings used for calls to analyzeIamPolicyLongrunning.
-
analyzeIamPolicyLongrunningOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<AnalyzeIamPolicyLongrunningRequest,AnalyzeIamPolicyLongrunningResponse,AnalyzeIamPolicyLongrunningMetadata> analyzeIamPolicyLongrunningOperationSettings()
Returns the object with the settings used for calls to analyzeIamPolicyLongrunning.
-
analyzeMoveSettings
public com.google.api.gax.rpc.UnaryCallSettings<AnalyzeMoveRequest,AnalyzeMoveResponse> analyzeMoveSettings()
Returns the object with the settings used for calls to analyzeMove.
-
queryAssetsSettings
public com.google.api.gax.rpc.UnaryCallSettings<QueryAssetsRequest,QueryAssetsResponse> queryAssetsSettings()
Returns the object with the settings used for calls to queryAssets.
-
createSavedQuerySettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateSavedQueryRequest,SavedQuery> createSavedQuerySettings()
Returns the object with the settings used for calls to createSavedQuery.
-
getSavedQuerySettings
public com.google.api.gax.rpc.UnaryCallSettings<GetSavedQueryRequest,SavedQuery> getSavedQuerySettings()
Returns the object with the settings used for calls to getSavedQuery.
-
listSavedQueriesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListSavedQueriesRequest,ListSavedQueriesResponse,AssetServiceClient.ListSavedQueriesPagedResponse> listSavedQueriesSettings()
Returns the object with the settings used for calls to listSavedQueries.
-
updateSavedQuerySettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateSavedQueryRequest,SavedQuery> updateSavedQuerySettings()
Returns the object with the settings used for calls to updateSavedQuery.
-
deleteSavedQuerySettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteSavedQueryRequest,com.google.protobuf.Empty> deleteSavedQuerySettings()
Returns the object with the settings used for calls to deleteSavedQuery.
-
batchGetEffectiveIamPoliciesSettings
public com.google.api.gax.rpc.UnaryCallSettings<BatchGetEffectiveIamPoliciesRequest,BatchGetEffectiveIamPoliciesResponse> batchGetEffectiveIamPoliciesSettings()
Returns the object with the settings used for calls to batchGetEffectiveIamPolicies.
-
analyzeOrgPoliciesSettings
public com.google.api.gax.rpc.PagedCallSettings<AnalyzeOrgPoliciesRequest,AnalyzeOrgPoliciesResponse,AssetServiceClient.AnalyzeOrgPoliciesPagedResponse> analyzeOrgPoliciesSettings()
Returns the object with the settings used for calls to analyzeOrgPolicies.
-
analyzeOrgPolicyGovernedContainersSettings
public com.google.api.gax.rpc.PagedCallSettings<AnalyzeOrgPolicyGovernedContainersRequest,AnalyzeOrgPolicyGovernedContainersResponse,AssetServiceClient.AnalyzeOrgPolicyGovernedContainersPagedResponse> analyzeOrgPolicyGovernedContainersSettings()
Returns the object with the settings used for calls to analyzeOrgPolicyGovernedContainers.
-
analyzeOrgPolicyGovernedAssetsSettings
public com.google.api.gax.rpc.PagedCallSettings<AnalyzeOrgPolicyGovernedAssetsRequest,AnalyzeOrgPolicyGovernedAssetsResponse,AssetServiceClient.AnalyzeOrgPolicyGovernedAssetsPagedResponse> analyzeOrgPolicyGovernedAssetsSettings()
Returns the object with the settings used for calls to analyzeOrgPolicyGovernedAssets.
-
createStub
public AssetServiceStub createStub() throws IOException
- Throws:
IOException
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
-
getDefaultEndpoint
public static String getDefaultEndpoint()
Returns the default service endpoint.
-
getDefaultMtlsEndpoint
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
-
getDefaultServiceScopes
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
-
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
-
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
-
defaultHttpJsonTransportProviderBuilder
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
-
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
-
defaultGrpcApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
-
defaultHttpJsonApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
-
defaultApiClientHeaderProviderBuilder
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static AssetServiceStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
public static AssetServiceStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static AssetServiceStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public AssetServiceStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.StubSettings<AssetServiceStubSettings>
-
-