Class ConfigSettings (3.8.0)

public class ConfigSettings extends 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 for illustrative purposes only.
 // It may require modifications to work in your environment.
 ConfigSettings.Builder configSettingsBuilder = ConfigSettings.newBuilder();
 configSettingsBuilder
     .getBucketSettings()
     .setRetrySettings(
         configSettingsBuilder
             .getBucketSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ConfigSettings configSettings = configSettingsBuilder.build();
 

Inheritance

java.lang.Object > ClientSettings > ConfigSettings

Static Methods

create(ConfigServiceV2StubSettings stub)

public static final ConfigSettings create(ConfigServiceV2StubSettings stub)
Parameter
NameDescription
stubConfigServiceV2StubSettings
Returns
TypeDescription
ConfigSettings
Exceptions
TypeDescription
IOException

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
TypeDescription
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
TypeDescription
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static ConfigSettings.Builder newBuilder()

Returns a new builder for this class.

Returns
TypeDescription
ConfigSettings.Builder

newBuilder(ClientContext clientContext)

public static ConfigSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
ConfigSettings.Builder

Constructors

ConfigSettings(ConfigSettings.Builder settingsBuilder)

protected ConfigSettings(ConfigSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderConfigSettings.Builder

Methods

copyLogEntriesOperationSettings()

public OperationCallSettings<CopyLogEntriesRequest,CopyLogEntriesResponse,CopyLogEntriesMetadata> copyLogEntriesOperationSettings()

Returns the object with the settings used for calls to copyLogEntries.

Returns
TypeDescription
OperationCallSettings<CopyLogEntriesRequest,CopyLogEntriesResponse,CopyLogEntriesMetadata>

copyLogEntriesSettings()

public UnaryCallSettings<CopyLogEntriesRequest,Operation> copyLogEntriesSettings()

Returns the object with the settings used for calls to copyLogEntries.

Returns
TypeDescription
UnaryCallSettings<CopyLogEntriesRequest,Operation>

createBucketSettings()

public UnaryCallSettings<CreateBucketRequest,LogBucket> createBucketSettings()

Returns the object with the settings used for calls to createBucket.

Returns
TypeDescription
UnaryCallSettings<CreateBucketRequest,LogBucket>

createExclusionSettings()

public UnaryCallSettings<CreateExclusionRequest,LogExclusion> createExclusionSettings()

Returns the object with the settings used for calls to createExclusion.

Returns
TypeDescription
UnaryCallSettings<CreateExclusionRequest,LogExclusion>

createSinkSettings()

public UnaryCallSettings<CreateSinkRequest,LogSink> createSinkSettings()

Returns the object with the settings used for calls to createSink.

Returns
TypeDescription
UnaryCallSettings<CreateSinkRequest,LogSink>

createViewSettings()

public UnaryCallSettings<CreateViewRequest,LogView> createViewSettings()

Returns the object with the settings used for calls to createView.

Returns
TypeDescription
UnaryCallSettings<CreateViewRequest,LogView>

deleteBucketSettings()

public UnaryCallSettings<DeleteBucketRequest,Empty> deleteBucketSettings()

Returns the object with the settings used for calls to deleteBucket.

Returns
TypeDescription
UnaryCallSettings<DeleteBucketRequest,Empty>

deleteExclusionSettings()

public UnaryCallSettings<DeleteExclusionRequest,Empty> deleteExclusionSettings()

Returns the object with the settings used for calls to deleteExclusion.

Returns
TypeDescription
UnaryCallSettings<DeleteExclusionRequest,Empty>

deleteSinkSettings()

public UnaryCallSettings<DeleteSinkRequest,Empty> deleteSinkSettings()

Returns the object with the settings used for calls to deleteSink.

Returns
TypeDescription
UnaryCallSettings<DeleteSinkRequest,Empty>

deleteViewSettings()

public UnaryCallSettings<DeleteViewRequest,Empty> deleteViewSettings()

Returns the object with the settings used for calls to deleteView.

Returns
TypeDescription
UnaryCallSettings<DeleteViewRequest,Empty>

getBucketSettings()

public UnaryCallSettings<GetBucketRequest,LogBucket> getBucketSettings()

Returns the object with the settings used for calls to getBucket.

Returns
TypeDescription
UnaryCallSettings<GetBucketRequest,LogBucket>

getCmekSettingsSettings()

public UnaryCallSettings<GetCmekSettingsRequest,CmekSettings> getCmekSettingsSettings()

Returns the object with the settings used for calls to getCmekSettings.

Returns
TypeDescription
UnaryCallSettings<GetCmekSettingsRequest,CmekSettings>

getExclusionSettings()

public UnaryCallSettings<GetExclusionRequest,LogExclusion> getExclusionSettings()

Returns the object with the settings used for calls to getExclusion.

Returns
TypeDescription
UnaryCallSettings<GetExclusionRequest,LogExclusion>

getSettingsSettings()

public UnaryCallSettings<GetSettingsRequest,Settings> getSettingsSettings()

Returns the object with the settings used for calls to getSettings.

Returns
TypeDescription
UnaryCallSettings<GetSettingsRequest,Settings>

getSinkSettings()

public UnaryCallSettings<GetSinkRequest,LogSink> getSinkSettings()

Returns the object with the settings used for calls to getSink.

Returns
TypeDescription
UnaryCallSettings<GetSinkRequest,LogSink>

getViewSettings()

public UnaryCallSettings<GetViewRequest,LogView> getViewSettings()

Returns the object with the settings used for calls to getView.

Returns
TypeDescription
UnaryCallSettings<GetViewRequest,LogView>

listBucketsSettings()

public PagedCallSettings<ListBucketsRequest,ListBucketsResponse,ConfigClient.ListBucketsPagedResponse> listBucketsSettings()

Returns the object with the settings used for calls to listBuckets.

Returns
TypeDescription
PagedCallSettings<ListBucketsRequest,ListBucketsResponse,ListBucketsPagedResponse>

listExclusionsSettings()

public PagedCallSettings<ListExclusionsRequest,ListExclusionsResponse,ConfigClient.ListExclusionsPagedResponse> listExclusionsSettings()

Returns the object with the settings used for calls to listExclusions.

Returns
TypeDescription
PagedCallSettings<ListExclusionsRequest,ListExclusionsResponse,ListExclusionsPagedResponse>

listSinksSettings()

public PagedCallSettings<ListSinksRequest,ListSinksResponse,ConfigClient.ListSinksPagedResponse> listSinksSettings()

Returns the object with the settings used for calls to listSinks.

Returns
TypeDescription
PagedCallSettings<ListSinksRequest,ListSinksResponse,ListSinksPagedResponse>

listViewsSettings()

public PagedCallSettings<ListViewsRequest,ListViewsResponse,ConfigClient.ListViewsPagedResponse> listViewsSettings()

Returns the object with the settings used for calls to listViews.

Returns
TypeDescription
PagedCallSettings<ListViewsRequest,ListViewsResponse,ListViewsPagedResponse>

toBuilder()

public ConfigSettings.Builder toBuilder()

Returns a builder containing all the values of this settings class.

Returns
TypeDescription
ConfigSettings.Builder
Overrides

undeleteBucketSettings()

public UnaryCallSettings<UndeleteBucketRequest,Empty> undeleteBucketSettings()

Returns the object with the settings used for calls to undeleteBucket.

Returns
TypeDescription
UnaryCallSettings<UndeleteBucketRequest,Empty>

updateBucketSettings()

public UnaryCallSettings<UpdateBucketRequest,LogBucket> updateBucketSettings()

Returns the object with the settings used for calls to updateBucket.

Returns
TypeDescription
UnaryCallSettings<UpdateBucketRequest,LogBucket>

updateCmekSettingsSettings()

public UnaryCallSettings<UpdateCmekSettingsRequest,CmekSettings> updateCmekSettingsSettings()

Returns the object with the settings used for calls to updateCmekSettings.

Returns
TypeDescription
UnaryCallSettings<UpdateCmekSettingsRequest,CmekSettings>

updateExclusionSettings()

public UnaryCallSettings<UpdateExclusionRequest,LogExclusion> updateExclusionSettings()

Returns the object with the settings used for calls to updateExclusion.

Returns
TypeDescription
UnaryCallSettings<UpdateExclusionRequest,LogExclusion>

updateSettingsSettings()

public UnaryCallSettings<UpdateSettingsRequest,Settings> updateSettingsSettings()

Returns the object with the settings used for calls to updateSettings.

Returns
TypeDescription
UnaryCallSettings<UpdateSettingsRequest,Settings>

updateSinkSettings()

public UnaryCallSettings<UpdateSinkRequest,LogSink> updateSinkSettings()

Returns the object with the settings used for calls to updateSink.

Returns
TypeDescription
UnaryCallSettings<UpdateSinkRequest,LogSink>

updateViewSettings()

public UnaryCallSettings<UpdateViewRequest,LogView> updateViewSettings()

Returns the object with the settings used for calls to updateView.

Returns
TypeDescription
UnaryCallSettings<UpdateViewRequest,LogView>