Package com.google.cloud.logging.v2
Class ConfigSettings
java.lang.Object
com.google.api.gax.rpc.ClientSettings<ConfigSettings>
com.google.cloud.logging.v2.ConfigSettings
@Generated("by gapic-generator-java")
public class ConfigSettings
extends com.google.api.gax.rpc.ClientSettings<ConfigSettings>
Settings class to configure an instance of
ConfigClient
.
The default instance has everything set to sensible defaults:
- The default service address (logging.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 getBucket 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
ConfigSettings.Builder configSettingsBuilder = ConfigSettings.newBuilder();
configSettingsBuilder
.getBucketSettings()
.setRetrySettings(
configSettingsBuilder
.getBucketSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
ConfigSettings configSettings = configSettingsBuilder.build();
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.rpc.OperationCallSettings<CopyLogEntriesRequest,
CopyLogEntriesResponse, CopyLogEntriesMetadata> Returns the object with the settings used for calls to copyLogEntries.com.google.api.gax.rpc.UnaryCallSettings<CopyLogEntriesRequest,
com.google.longrunning.Operation> Returns the object with the settings used for calls to copyLogEntries.static final ConfigSettings
com.google.api.gax.rpc.OperationCallSettings<CreateBucketRequest,
LogBucket, BucketMetadata> Returns the object with the settings used for calls to createBucketAsync.com.google.api.gax.rpc.UnaryCallSettings<CreateBucketRequest,
com.google.longrunning.Operation> Returns the object with the settings used for calls to createBucketAsync.com.google.api.gax.rpc.UnaryCallSettings<CreateBucketRequest,
LogBucket> Returns the object with the settings used for calls to createBucket.com.google.api.gax.rpc.UnaryCallSettings<CreateExclusionRequest,
LogExclusion> Returns the object with the settings used for calls to createExclusion.com.google.api.gax.rpc.OperationCallSettings<CreateLinkRequest,
Link, LinkMetadata> Returns the object with the settings used for calls to createLink.com.google.api.gax.rpc.UnaryCallSettings<CreateLinkRequest,
com.google.longrunning.Operation> Returns the object with the settings used for calls to createLink.com.google.api.gax.rpc.UnaryCallSettings<CreateSinkRequest,
LogSink> Returns the object with the settings used for calls to createSink.com.google.api.gax.rpc.UnaryCallSettings<CreateViewRequest,
LogView> Returns the object with the settings used for calls to createView.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
Returns a builder for the default ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
com.google.api.gax.rpc.UnaryCallSettings<DeleteBucketRequest,
com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteBucket.com.google.api.gax.rpc.UnaryCallSettings<DeleteExclusionRequest,
com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteExclusion.com.google.api.gax.rpc.OperationCallSettings<DeleteLinkRequest,
com.google.protobuf.Empty, LinkMetadata> Returns the object with the settings used for calls to deleteLink.com.google.api.gax.rpc.UnaryCallSettings<DeleteLinkRequest,
com.google.longrunning.Operation> Returns the object with the settings used for calls to deleteLink.com.google.api.gax.rpc.UnaryCallSettings<DeleteSinkRequest,
com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteSink.com.google.api.gax.rpc.UnaryCallSettings<DeleteViewRequest,
com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteView.com.google.api.gax.rpc.UnaryCallSettings<GetBucketRequest,
LogBucket> Returns the object with the settings used for calls to getBucket.com.google.api.gax.rpc.UnaryCallSettings<GetCmekSettingsRequest,
CmekSettings> Returns the object with the settings used for calls to getCmekSettings.static String
Returns the default service endpoint.Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetExclusionRequest,
LogExclusion> Returns the object with the settings used for calls to getExclusion.com.google.api.gax.rpc.UnaryCallSettings<GetLinkRequest,
Link> Returns the object with the settings used for calls to getLink.com.google.api.gax.rpc.UnaryCallSettings<GetSettingsRequest,
Settings> Returns the object with the settings used for calls to getSettings.com.google.api.gax.rpc.UnaryCallSettings<GetSinkRequest,
LogSink> Returns the object with the settings used for calls to getSink.com.google.api.gax.rpc.UnaryCallSettings<GetViewRequest,
LogView> Returns the object with the settings used for calls to getView.com.google.api.gax.rpc.PagedCallSettings<ListBucketsRequest,
ListBucketsResponse, ConfigClient.ListBucketsPagedResponse> Returns the object with the settings used for calls to listBuckets.com.google.api.gax.rpc.PagedCallSettings<ListExclusionsRequest,
ListExclusionsResponse, ConfigClient.ListExclusionsPagedResponse> Returns the object with the settings used for calls to listExclusions.com.google.api.gax.rpc.PagedCallSettings<ListLinksRequest,
ListLinksResponse, ConfigClient.ListLinksPagedResponse> Returns the object with the settings used for calls to listLinks.com.google.api.gax.rpc.PagedCallSettings<ListSinksRequest,
ListSinksResponse, ConfigClient.ListSinksPagedResponse> Returns the object with the settings used for calls to listSinks.com.google.api.gax.rpc.PagedCallSettings<ListViewsRequest,
ListViewsResponse, ConfigClient.ListViewsPagedResponse> Returns the object with the settings used for calls to listViews.static ConfigSettings.Builder
Returns a new builder for this class.static ConfigSettings.Builder
newBuilder
(com.google.api.gax.rpc.ClientContext clientContext) Returns a new builder for this class.Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.UnaryCallSettings<UndeleteBucketRequest,
com.google.protobuf.Empty> Returns the object with the settings used for calls to undeleteBucket.com.google.api.gax.rpc.OperationCallSettings<UpdateBucketRequest,
LogBucket, BucketMetadata> Returns the object with the settings used for calls to updateBucketAsync.com.google.api.gax.rpc.UnaryCallSettings<UpdateBucketRequest,
com.google.longrunning.Operation> Returns the object with the settings used for calls to updateBucketAsync.com.google.api.gax.rpc.UnaryCallSettings<UpdateBucketRequest,
LogBucket> Returns the object with the settings used for calls to updateBucket.com.google.api.gax.rpc.UnaryCallSettings<UpdateCmekSettingsRequest,
CmekSettings> Returns the object with the settings used for calls to updateCmekSettings.com.google.api.gax.rpc.UnaryCallSettings<UpdateExclusionRequest,
LogExclusion> Returns the object with the settings used for calls to updateExclusion.com.google.api.gax.rpc.UnaryCallSettings<UpdateSettingsRequest,
Settings> Returns the object with the settings used for calls to updateSettings.com.google.api.gax.rpc.UnaryCallSettings<UpdateSinkRequest,
LogSink> Returns the object with the settings used for calls to updateSink.com.google.api.gax.rpc.UnaryCallSettings<UpdateViewRequest,
LogView> Returns the object with the settings used for calls to updateView.Methods inherited from class com.google.api.gax.rpc.ClientSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
-
Constructor Details
-
ConfigSettings
- Throws:
IOException
-
-
Method Details
-
listBucketsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListBucketsRequest,ListBucketsResponse, listBucketsSettings()ConfigClient.ListBucketsPagedResponse> Returns the object with the settings used for calls to listBuckets. -
getBucketSettings
Returns the object with the settings used for calls to getBucket. -
createBucketAsyncSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateBucketRequest,com.google.longrunning.Operation> createBucketAsyncSettings()Returns the object with the settings used for calls to createBucketAsync. -
createBucketAsyncOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateBucketRequest,LogBucket, createBucketAsyncOperationSettings()BucketMetadata> Returns the object with the settings used for calls to createBucketAsync. -
updateBucketAsyncSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateBucketRequest,com.google.longrunning.Operation> updateBucketAsyncSettings()Returns the object with the settings used for calls to updateBucketAsync. -
updateBucketAsyncOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateBucketRequest,LogBucket, updateBucketAsyncOperationSettings()BucketMetadata> Returns the object with the settings used for calls to updateBucketAsync. -
createBucketSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateBucketRequest,LogBucket> createBucketSettings()Returns the object with the settings used for calls to createBucket. -
updateBucketSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateBucketRequest,LogBucket> updateBucketSettings()Returns the object with the settings used for calls to updateBucket. -
deleteBucketSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteBucketRequest,com.google.protobuf.Empty> deleteBucketSettings()Returns the object with the settings used for calls to deleteBucket. -
undeleteBucketSettings
public com.google.api.gax.rpc.UnaryCallSettings<UndeleteBucketRequest,com.google.protobuf.Empty> undeleteBucketSettings()Returns the object with the settings used for calls to undeleteBucket. -
listViewsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListViewsRequest,ListViewsResponse, listViewsSettings()ConfigClient.ListViewsPagedResponse> Returns the object with the settings used for calls to listViews. -
getViewSettings
Returns the object with the settings used for calls to getView. -
createViewSettings
Returns the object with the settings used for calls to createView. -
updateViewSettings
Returns the object with the settings used for calls to updateView. -
deleteViewSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteViewRequest,com.google.protobuf.Empty> deleteViewSettings()Returns the object with the settings used for calls to deleteView. -
listSinksSettings
public com.google.api.gax.rpc.PagedCallSettings<ListSinksRequest,ListSinksResponse, listSinksSettings()ConfigClient.ListSinksPagedResponse> Returns the object with the settings used for calls to listSinks. -
getSinkSettings
Returns the object with the settings used for calls to getSink. -
createSinkSettings
Returns the object with the settings used for calls to createSink. -
updateSinkSettings
Returns the object with the settings used for calls to updateSink. -
deleteSinkSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteSinkRequest,com.google.protobuf.Empty> deleteSinkSettings()Returns the object with the settings used for calls to deleteSink. -
createLinkSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateLinkRequest,com.google.longrunning.Operation> createLinkSettings()Returns the object with the settings used for calls to createLink. -
createLinkOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateLinkRequest,Link, createLinkOperationSettings()LinkMetadata> Returns the object with the settings used for calls to createLink. -
deleteLinkSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteLinkRequest,com.google.longrunning.Operation> deleteLinkSettings()Returns the object with the settings used for calls to deleteLink. -
deleteLinkOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteLinkRequest,com.google.protobuf.Empty, deleteLinkOperationSettings()LinkMetadata> Returns the object with the settings used for calls to deleteLink. -
listLinksSettings
public com.google.api.gax.rpc.PagedCallSettings<ListLinksRequest,ListLinksResponse, listLinksSettings()ConfigClient.ListLinksPagedResponse> Returns the object with the settings used for calls to listLinks. -
getLinkSettings
Returns the object with the settings used for calls to getLink. -
listExclusionsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListExclusionsRequest,ListExclusionsResponse, listExclusionsSettings()ConfigClient.ListExclusionsPagedResponse> Returns the object with the settings used for calls to listExclusions. -
getExclusionSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetExclusionRequest,LogExclusion> getExclusionSettings()Returns the object with the settings used for calls to getExclusion. -
createExclusionSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateExclusionRequest,LogExclusion> createExclusionSettings()Returns the object with the settings used for calls to createExclusion. -
updateExclusionSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateExclusionRequest,LogExclusion> updateExclusionSettings()Returns the object with the settings used for calls to updateExclusion. -
deleteExclusionSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteExclusionRequest,com.google.protobuf.Empty> deleteExclusionSettings()Returns the object with the settings used for calls to deleteExclusion. -
getCmekSettingsSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetCmekSettingsRequest,CmekSettings> getCmekSettingsSettings()Returns the object with the settings used for calls to getCmekSettings. -
updateCmekSettingsSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateCmekSettingsRequest,CmekSettings> updateCmekSettingsSettings()Returns the object with the settings used for calls to updateCmekSettings. -
getSettingsSettings
Returns the object with the settings used for calls to getSettings. -
updateSettingsSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateSettingsRequest,Settings> updateSettingsSettings()Returns the object with the settings used for calls to updateSettings. -
copyLogEntriesSettings
public com.google.api.gax.rpc.UnaryCallSettings<CopyLogEntriesRequest,com.google.longrunning.Operation> copyLogEntriesSettings()Returns the object with the settings used for calls to copyLogEntries. -
copyLogEntriesOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CopyLogEntriesRequest,CopyLogEntriesResponse, copyLogEntriesOperationSettings()CopyLogEntriesMetadata> Returns the object with the settings used for calls to copyLogEntries. -
create
- Throws:
IOException
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()Returns a builder for the default ExecutorProvider for this service. -
getDefaultEndpoint
Returns the default service endpoint. -
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 ChannelProvider for this service. -
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider() -
defaultApiClientHeaderProviderBuilder
@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 defaultApiClientHeaderProviderBuilder() -
newBuilder
Returns a new builder for this class. -
newBuilder
Returns a new builder for this class. -
toBuilder
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.ClientSettings<ConfigSettings>
-